0

I'm pretty much confused with hiding navigation bar.

In most of the UIViewController I'm using:

self.navigationController?.navigationBar.isHidden = true

But some times UINavigationBar is not hidden or visible.

Instead, if I use:

self.navigationController?.isNavigationBarHidden = true

I can hide or show UINavigationBar.

What's the difference between above properties?

Anh Pham
  • 2,108
  • 9
  • 18
  • 29
Dinesh Nagarajan
  • 1,063
  • 2
  • 10
  • 22

0 Answers0