i am doing app haivng functionality of uislider when user slides the slider it moves forword and chages its value in the label.I have given action like this for that
- (IBAction)sensivity:(UISlider*)sender
{
self.senlabel.text =[NSString stringWithFormat:@"%d", (int)sender.value];
}
upto here its fine but i need to show the alert view when user starts to tap the slider for first time. if user click ok then it label should change the slider value if cancel it should show some default value . Key points needed:
- show alert for only time if user taps second time alert should now show
- if click ok on alert view then only slider should change
- if click cancel on alert view then slider should not change its value