1

我有一個奇怪的問題,當填充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

你有什麼線索?

在此先感謝。

回答

0

刪除整個Storyboard並重做它解決了問題。