title: UISlider that snaps to a fixed number of steps (like Text Size in the iOS 7 Settings app)
body: <p>I'm trying to create a <code>UISlider</code> that lets you choose from an array of numbers. Each slider position should be equidistant and the slider should snap to each position, rather than smoothly slide between them. (This is the behavior of the slider in <code>Settings</code> > <code>General</code> > <code>Text Size</code>, which was introduced in iOS 7.)</p>
  
  <p><img src="https://i.stack.imgur.com/SMECP.png" alt="iOS 7 Text Size Slider"> </p>
  
  <p>The numbers I want to choose from are: <code>-3, 0, 2, 4, 7, 10, and 12.</code></p>
  
  <p>(I'm very new to Objective-C, so a complete code example would be much more helpful than a code snippet. =)</p>