1

I want my UIPickerView to rotate to the beginning of the list when it is scrolled past the bottom. How do I do this? Basically, I want the functionality of the UIDatePicker when it scrolls the hours/minutes/seconds continuously.

I'm assuming I could just return an extremely large number from the numberOfComponentsInPickerView and then the actual titleForRow with a modulus of the number, but I think there must be a better way. Plus, I'm not sure how it is handled when the wheel starts since I can't return a negative number and it doesn't normally scroll backwards.

Any thoughts on how to do this?

4

1 回答 1

1

Maybe this idea would work - just keep the user in the middle of the wheel so it has the sensation of staying on the same wheel.

于 2010-01-01T23:21:49.583 回答