In my iPhone app I m using a slider for adjusting the volume and working fine. But I m not able to set a default value for slider when app loads. I have seen that only when the slider is touched the value gets changed.But i need a default value when app loads. My code is given below
- (IBAction)sliderChanged:(id)sender {
slider = (UISlider *) sender;
slider.minimumValue = 0.5;
slider.maximumValue = 2.2;
progressAsInt = slider.value ;
}
如何解决这一问题。
请提供帮助。 提前感谢。