I have several buttons positioned on my ViewController within the area covered by the UIPageViewController‘s GestureRecognizers. Taps in this area are consumed by the UIPageViewController and never reach the buttons below.
I’ve read iPad – PageViewController – Show next view controller on button click and UIPageViewController Gesture recognizers and understand the principle but have no prior Obj-C experience and am struggling to recreate these solutions in C#.
Could somebody please provide an example of how this is done in MonoTouch?
Here’s how your first link would translate into C# using MonoTouch (note: untried).
First you would create your own (non .NET) delegate for
UIGestureRecognizerlike this:It will return
trueto if the touch gesture does not apply to aUIControl(including buttons).Then you need to assign this delegate to the
GestureRecognizersthat are assigned to yourUIPageViewController.This lets you adapt how the gesture will be interpreted. If not handled by the gesture itself then it should be routed to your own controls/buttons.