UINavigationController without navigation bar?

后端 未结 6 1710
小蘑菇
小蘑菇 2020-12-07 15:01

I have a universal app, and on the iPad version I\'m using UISplitViewController to create an interface similar to the Mail app.

I was having trouble pu

6条回答
  •  醉话见心
    2020-12-07 16:07

    You should be able to do the following:

    self.navigationController.navigationBar.isHidden = true //Swift 5
    

    where self.navigationController is (obviously) an instance of UINavigationController. Seems to work for me, but I only briefly tested it before posting this.

提交回复
热议问题