I’m accessing a navigation controller from the app delegate and trying to push another view:
[appDelegate.myNavigationController pushViewController:self.detailView animated:YES];
but nothing is happening. The above is in myTableView.
The app is tabbar based. I added a NavigationController object under the TabbarController object in IB. Then I created a reference to myNavigationController in the app delegate.
Any suggestions how I can figure out why the above code isn’t working? It works if addSubview to the current view.
Make sure that
appDelegateis not null (wherever you’re getting it from is returning the right value),appDelegate.myNavigationControlleris not null (the IBOutlet was setup properly), and thatappDelegate.myNavigationController.windowis not null (it is currently displayed on the top of the stack.Also make sure that any animations of previous pushing or popping of views are complete before you push your new item.