I have this in appDelegate:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
window = UIWindow(frame: UIScreen.mainScreen().bounds)
let nav = NavigationViewController(rootViewController: MenuViewController(rootViewController: FeedVC()))
window?.rootViewController = SideNavigationController(rootViewController: nav, leftViewController: LeftVC(), rightViewController: nil)
window?.makeKeyAndVisible()
}
This works fine. My FeedVC is displayed and I can access the LeftVC with SideNavigationController. (Btw, is it a good way of doing it ?)
Then in my FeedVC class, I want to add titleLabel (navigationItem) to the navigationBar but navigationController is nil !
So I think my FeedVC is not embed in NavigationController. But I'm not using storyboard for this. How can I do this programmatically and take in count that there is also a SideNavigationController at the very top...
Thanks for helping!