if you want your slider to snap to different integer values, you could use something like this in your valueChanged-function:
-(IBAction)valueChanged:(UISlider*)sender {
int discreteValue = roundtol([sender value]); // Rounds float to an integer
[sender setValue:(float)discreteValue]; // Sets your slider to this value
}
This will snap the slider after releasing your finger to values like 1,2,...,15 based on the distance between two numbers. If for instance you released the slider at 2.4, it'll snap back to 2, whereas at 2.6 it would snap to 3.