首页 > 代码库 > whose view is not in the window hierarchy!

whose view is not in the window hierarchy!

whose view is not in the window hierarchy!

 [self presentViewController:tabbar animated:NO completion:NULL];

不要在viewWillAppear 和 viewDidLoad 实现页面跳转

viewDidAppear方法和viewDidLoad方法的区别在于:viewDidLoad方法调用时视图还没完全过渡到window中,viewDidAppear方法调用时,视图已经完全过渡到window中了。
在viewDidAppear方法中调用performSegue方法实现视图跳转

whose view is not in the window hierarchy!