I am new to iPhone,
How do I have my UISlider go from 1 to 100 in increments of 1
?
slider = [[UISlider alloc] init];
[slider add
I know i'm late to the party but I've also had to do this recently. Here is how I've done it in swift using XCode 8.3.2:
@IBAction func sliderValueChanged(_ slider: UISlider) {
label.text = Int(slider.value)
}
Simples! I know I could have used 'Any' instead of 'UISlider', but I think this makes my intention clearer ;)