Navigation bar not showing iOS swift

前端 未结 7 1488
醉话见心
醉话见心 2021-02-18 13:24

I am having multiple view controller in my application. I want to hide navigationbar in my first view controller. So I use the following code to hide the navigation

7条回答
  •  余生分开走
    2021-02-18 13:39

    If you need to have this navigation bar hidden only in this controller, the best way is to show it in viewWillDisappear() and hide in viewWillAppear().

提交回复
热议问题