I have a slider. Minimum value of this is 0sec and maximum value is 3min(or 180 sec). I want to increment the slider value by 10 sec. How can I get this? Please help.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you want the slider to increment up/down in steps of 10…
Hook up the slider’s value changed event in IB (or
UIControlEventValueChangedin code) to a method in your view controller such as:The
self.sliderValueis a separate integer property to track the value (rather than changing the underlying value of the slider causing UI issues)