i am using the new iOS 8 SplitViewController i am setting only one detailViewController from storyboard and then i use showDetailViewController()
to show a new viewController
self.splitViewController?.showDetailViewController(TableViewController(), sender: nil)
but the NavigationBar is always hidden is there a way to put a NavigationBar on the detailViewController
and yeah btw i tried to unhide the NavigationBar but not working
self.navigationController?.setNavigationBarHidden(false, animated: true)
simply we can put a UINavigationController before TableViewController
like this and show the navigationController
var nav = UINavigationController(rootViewController:TableViewController())
self.splitViewController?.showDetailViewController(nav, sender: nil)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With