I have had a look into this question a lot however I'm still unclear whether it's possible or not. Essentially what I want to do is to create a UIPickerView
that is continuous in the sense that you can spin it forever and you will never reach the end of it (since the last value is followed by the first value).
I have had a look around online and there seem to be a wide variety of hacks to achieve the desired effect. However a lot of these solutions seem to increase the number of rows in the UIPickerView
to trick the user into thinking the UIPickerView
is continuous (however, in reality if they kept scrolling they would eventually reach the end).
What I'm after is a way of creating a UIPickerView that is genuinely infinite in the sense that you will never reach the end if you keep scrolling for days, weeks, months or years. I don't mind too much if the solution is a hack since I understand that Apple hasn't provided a way of achieving the effect as of yet.
Please can someone advise on a way of doing this (or point me in the right direction at least)?
I really think, that the only hack you can do with native UIPickerView is described here:
How do you make an UIPickerView component wrap around?
The other way do make really looped picker is to implement it by yourself.
I saw pickers that were implemented with cocos2d, that is OpenGL-based. I think, you can try to do it using UIKit if you really need to.
Or just forget it and make a picker with NSIntegerMax rows with repeatable content. I think that nobody will spin it till the end.