viewWillAppear和viewDidAppear不调用,而viewDidLoad调用什么时在UIViewController

问题描述:

我有一个奇怪的问题,当填充UIViewControllerviewWillAppear和viewDidAppear不调用,而viewDidLoad调用什么时在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这是一个情节提要: enter image description hereenter image description here

然后这是当它不叫viewDidAppearviewWillAppear,但viewDidLoad被称为完美。

如果我清空(所以,当我没有主视图内的任何视图)它完美的作品:

enter image description here

你有什么线索?

在此先感谢。

删除整个Storyboard并重做它解决了问题。