开发者

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...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜