I need to trigger another event depending on whether the user will iterate over the top of the screen, the middle of the screen or the bottom of the screen. I am trying to find the best / easiest way to do this, since I am sure there is no way to get the location from UISwipeGestureRecognizer.
The first option is to create my own scroll recognizer using touch methods. This seems like it would be very difficult (for example, trying to distinguish between swipe and drag).
The second option is to get the location from one of the βtouchβ methods (for example, touchBegan) and somehow connect it using a swipe. Perhaps set a timer in touchhesBegan, and then if the recognition napkin is triggered within half a second or so, I find out that the napkins were associated with this touch.
The third possibility that I can think of is to lay 3 transparent peeps on top of my presentation and add a different napkin recognizer to each view. This seems like the best way to me, except that transparent views do not recognize touch / swipe events. So how can I get around this?
Any suggestions? Thanks.
source share