我似乎无法让 PresentWithGesture 工作。我需要能够根据显示的详细视图控制器打开和关闭它。
- (IBAction)disableGestures:(id)sender
{
AppDelegate *appDelegate = [UIApplication sharedApplication].delegate;
appDelegate.splitViewController.presentsWithGesture = NO;
NSLog(@"Disable Gestures!");
}
我整理了一个简单的项目(使用默认的 UISplitViewController 模板): http ://www.filedropper.com/splitviewtest
这不是 PresentWithGesture 的预期用途吗?