iPhone UINavigationController inside UIViewController

前端 未结 1 1758
南笙
南笙 2021-01-03 09:40

Steps:

  • List item
  • Create a project called Nav.
  • Create a new UIViewController BaseViewController (with XIB) and FirstViewControlle
相关标签:
1条回答
  • 2021-01-03 10:37

    I can't tell if you're trying to connect your navigation controller directly to your window, just from a second XIB (which should work) or if you're making your navigation controller a subview of another view, which won't work.

    UINavigationController is only intended to be used as either the primary subview of a UIWindow or as a subview of a UITabController. Apple doesn't want you embedding a navigation controller in other contexts.

    See Combined View Controller Interfaces in the View Controller Programming Guide for more details.

    0 讨论(0)
提交回复
热议问题