In an XCode project (iOS 5.1) where I have been using UIPageViewController, I noticed that when I tap on any button the automatic action is to send the goBackevent and flip the page back to the previous index.
I am bewildered by this because checking on the responders for the UIButton they haven’t been associated to the goBack event or any other event for that matter.
Any clues on how to remove this behavior?
Ok, after more searching I realized what really is happening.
Apparently the
UIButtonisn’t throwing the goBack event; since the button is in the left field of theUIPageViewControllersubview aUITapGestureis captured on that region and initiates thegoBackevent.The same thing will happen if a
UIButtonis on the right side of theUIPageViewController, which will cause agoForwardevent instead.The details on how to fix this problem is in this question: UIPageViewController Gesture recognizers