how i may know if UIPickerView is spinning now or not
Help me plea开发者_如何学运维se.
How i may know if UIPickerView is spinning now or not?
In UIPickerViewDelegate i dont find any similar methods.
Thanks.
Well... Sorry to be late.
As far as I know, the only think you can do to check if your UIPickerView is spinning or not is to look at one of these two methods of UIPickerViewDelegate:
– pickerView:titleForRow:forComponent:
– pickerView:viewForRow:forComponent:reusingView:
These methods are called when the UIPickerView needs to change the views/labels it shows. That happens whenever you spin it enough to make a new row appear.
Unfortunately, if your UIPickerView has just few rows or if it doesn't spin enough you can miss its movement...
精彩评论