Navigation bar not showing iOS swift

前端 未结 7 1463
醉话见心
醉话见心 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:40

    It's too late to reply and there are other good answers but I would like to share what worked for me.

    let controller = self.storyboard?.instantiateViewControllerWithIdentifier("HomeVC")
        self.navigationController!.pushViewController(controller!, animated:true)
    

提交回复
热议问题