在用TabbarController中出现navigationController 嵌套出错

在用TabbarController中出现navigationController 嵌套报错

如果出现:

nested push animation can result in corrupted navigation bar

 Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.


一般这种情况是在自定义的tabbarController 的ViewWillAppera中没有调用superWillAppera, 调用父类方法就OK。

    [super viewWillAppear:animated];