Try this:
- (IBAction) sliderValueChanged:(UISlider *)sender {
label.text = [NSString stringWithFormat:@"%f", slider.value];
}
If label and/or slider are IB elements, define IBOutlets and connect them.
And then connect the slider sliderChanged
action to this method.
Good luck!