UISplitViewController presentWithGesture = YES无法正常工作

时间:2014-10-07 12:02:36

标签: ios objective-c ipad uisplitviewcontroller

AppDelegate application:didFinishLaunchingWithOptions: UISplitViewController中,我使用以下代码实例化PopMenuViewController *menuVC = [[PopMenuViewController alloc] initWithStyle:UITableViewStylePlain]; UINavigationController *menuNavController = [[UINavigationController alloc] initWithRootViewController:menuVC]; PopMenuDetailViewController *detailVC = [[PopMenuDetailViewController alloc] initWithNibName:@"PopMenuDetailViewController" bundle:nil]; UINavigationController *detailNavController = [[UINavigationController alloc] initWithRootViewController:detailVC]; menuVC.detailViewController = detailVC; splitViewController = [[UISplitViewController alloc] init]; splitViewController.viewControllers = @[menuNavController, detailNavController]; splitViewController.presentsWithGesture = YES; splitViewController.delegate = self; self.window.rootViewController = splitViewController;

presentsWithGesture

但是,在纵向模式下,当我在屏幕上滑动时(从左到右),左视图控制器不会出现(但YES设置为{{1}})。

我在Simulator和iOS 7的物理设备上运行该项目。

任何想法?

0 个答案:

没有答案