Search code examples
objective-ciosuipickerview

How to determine direction of UIPickerView rotation?


In my code I need to know in what direction my UIPickerView rotate at this moment. Can anybody help me with this problem?


Solution

  • You need to sublcass UIPickerView and add the standard touch handling events. The UIPickerView is composed of nine subviews, one of which is a UIScrollView. Use the gesture recognition api to handle the events.

    Example of subclassing here.