Search code examples
iphoneuiscrollviewtap

iPhone tap to next page event


I just wonder how can I achieve the gesture of tapping the lower right (left) corner of the screen to go to the next (previous) page in a UIScrollView, just like it did in the iBook apps from Apple?

Thanks, Lawrence


Solution

  • I would try putting a UITapGestureRecognizer on the UIScrollView. If the tap location within the view is where you want, turn the page left or right.

    UITapGestureRecognizer