我在我的项目中使用了AMSideMenu,并且从主屏幕执行segue(从导航栏按钮和UIButton)到另一个视图控制器非常慢。知道为什么会这样吗?
我在Appdelegate.m中使用了以下代码
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
MFSideMenuContainerViewController *container = (MFSideMenuContainerViewController *)self.window.rootViewController;
container.panMode = MFSideMenuPanModeNone;
UINavigationController *navigationController = [storyboard instantiateViewControllerWithIdentifier:@"navigationController"];
UIViewController *leftSideMenuViewController = [storyboard instantiateViewControllerWithIdentifier:@"leftSideMenuViewController"];
[container setLeftMenuViewController:leftSideMenuViewController];
[container setRightMenuViewController:nil];
[container setCenterViewController:navigationController];