I have a simple slider app. When the slider is changed, the new value is displayed in a UILabel. That works great!
When that view is loaded though the label is blank. I want the sliderValue.text
to be equal to the default slider value.
Here is my code right now (along with my previous attempt):
-(IBAction)sliderValue:(UISlider *)sender {
sliderLabel.text = [NSString stringWithFormat:@"%g", roundf(slider.value)];
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
-(IBAction)sliderValue:(id)sender;
}
Could someone please help me out?
Thanks!