I have a UINavigationController that is associated with a ViewController that is set as RootController. I turned on the UINavigationBar and put 3 UIViews with UIButton inside. Ideally, I would like to make the UINavigationBar completely invisible, but I would also decide to set the color to the background color of my ViewController. I work fast and I have tried things like
self.navigationBar.setBackgroundImage(UIImage(), forBarMetrics: UIBarMetrics.Default) self.navigationBar.shadowImage = UIImage() self.navigationBar.translucent = true
However, nothing is changing. Is there a proper way to do this?
source share