我似乎無法得到presentsWithGesture工作。我需要能夠基於顯示的詳細視圖控制器打開和關閉它。UISplitViewController presentsWithGesture不工作
- (IBAction)disableGestures:(id)sender
{
AppDelegate *appDelegate = [UIApplication sharedApplication].delegate;
appDelegate.splitViewController.presentsWithGesture = NO;
NSLog(@"Disable Gestures!");
}
我已經把一個簡單的項目(使用默認UISplitViewController模板): http://www.filedropper.com/splitviewtest
這是不是有意使用presentsWithGesture的?
presentsGithGesture應設置之前設置代表。所以你不能在委託設置後禁用它。 – ZYiOS