Navigation Controller navigation bar ishidden not working iOS swift

Problem:

I had tried to hidden the navigation bar using the below code.But it's not hidden the navigation bar.

self.navigationController?.navigationBar.isHidden = true


Solution:

The above code will never works.So try the below code it will works good.

self.navigationController?.isNavigationBarHidden = true

Comments

  1. Great! This is the right answer.

    self.navigationController?.navigationBar.isHidden = true will not work even you set it in viewWillAppear.

    ReplyDelete

Post a Comment

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift