0

Prior to iOS 11, the UINavigationBar buttons and title are being displayed correctly.

After downloaded Xcode 9 with iOS 11 and, after building and running without doing changes, both navigation buttons and the title are not being displayed anymore.

For presenting ViewController I am using below code, its might be an issue of adding viewcontroller in navigation rootviewcontroller:

if let vc = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "MyVC") as? MyVC {
            let navigationController = UINavigationController(rootViewController: vc)
            self.present(navigationController, animated: true, completion: nil)
}

Any alternate of the above code to present viewcontroller and also support navigationcontroller which are presenting.

Any help is appriciated..!!

jigs
  • 839
  • 1
  • 6
  • 23

0 Answers0