最近做的一个项目界面如下:
UINavigationController
---->UITabBarController
但是看到pushViewController方法中有这样的描述:
"The view controller to push onto the stack. This object cannot be a tab bar controller. "
感到疑惑,为何UINavigationController could be embedded in UITabBarController,反之则不行呢?
转化一下如下:
- UITabBarController -> UINavigationController(YES)
- UINavigationController ->