【发布时间】:2015-06-20 19:21:18
【问题描述】:
我在填充 UIViewController 时遇到了一个奇怪的问题。
所以,从根本上来说,我正在我的应用程序with MMDrawerController 中制作一个抽屉,例如:
self.drawerController = [[MMDrawerController alloc]
initWithCenterViewController:centerController
leftDrawerViewController:leftController
rightDrawerViewController:nil];
self.drawerController.openDrawerGestureModeMask = MMOpenDrawerGestureModeAll;
self.drawerController.closeDrawerGestureModeMask = MMCloseDrawerGestureModeAll;
[self.drawerController setDrawerVisualStateBlock:[MMDrawerVisualState slideVisualStateBlock]];
self.drawerController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentViewController:self.drawerController animated:YES completion:NULL];
好吧,我的leftController 是故事板上的这个:
然后这是它不调用viewDidAppear和viewWillAppear但完美调用viewDidLoad的时候。
如果我清空它(因此,当我在主视图中没有 任何 视图时)它会完美运行:
你有什么线索吗?
提前致谢。
【问题讨论】:
标签: ios objective-c uiviewcontroller viewwillappear viewdidappear