Hey, is there any way to determine is UIPickerView is scrolling currently, I really need that functionality for my app, it’s really important. Thanks!
Hey, is there any way to determine is UIPickerView is scrolling currently, I really
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.
There is a UIPickerViewDelegate method which is basically triggered every time you scroll the picker
Set the delegate for your picker, implement this method and see what happens…
[EDIT] ok now I understand what you need.
Implement a timer which checks the state of the picker.
in the above delegate method, store the last time the picker had been moved.
in the checkPicker method check how much time had elapsed from the last move
if timeSinceMove is bigger then some desired value i.e. 0.5 seconds, set your BOOL pickerMoving to false. else set it to true. This is not the most precise method to check for movement, but I think it should do the job…