How to hide a navigation bar from first ViewController in Swift?

前端 未结 12 1584
悲哀的现实
悲哀的现实 2020-11-30 17:03

How can I hide a navigation bar from first ViewController or a particular ViewController in swift?

I used the following code in viewDidLoad():

12条回答
  •  天命终不由人
    2020-11-30 17:17

    I use a variant of the above, and isolate sections of my app to be embedded in differing NavControllers. This way, i don't have to reset visibility. Very useful in startup sequences, for example.

提交回复
热议问题