Search code examples
iosipaduisplitviewcontroller

UISplitViewController presentsWithGesture not working


I can't seem to get presentsWithGesture to work. I need to be able to turn it on and off based on the detail view controller that is displayed.

- (IBAction)disableGestures:(id)sender
{
    AppDelegate *appDelegate = [UIApplication sharedApplication].delegate;
    appDelegate.splitViewController.presentsWithGesture = NO;

    NSLog(@"Disable Gestures!");
}

I've put together a simple project (using the default UISplitViewController template): http://www.filedropper.com/splitviewtest

Is this not the intended use of presentsWithGesture?


Solution

  • Looks like you can only change presentsWithGesture in the AppDelegate.

    My solution was to disable it and add a UISWipeGestureRecognizer that I could control.