self.navigationController is nil
I think I'm having a similar problem to ipnewbie from a few posts back, and wondering if any resolution was found.
I have a tab bar where some tabs are navigation controllers. Everything is set up in IB, and I'm pretty sure I've done that part right, as things are working as intended for the most part. My table views load and actions I wrote in didSelectRowAtIndexPath work fine.
However, for one of the navigation controllers that loads a table view, I've tried to create a nav bar button that pushes a child view. I've found that when I call the [self.navigationController pushViewController:animated] line, self.navigationController is nil. I found a way around this using:
[self presentModalViewController:childController animated:YES];
but this is not really what I'm looking for, and isn't addressing the real problem. It seems that my table view is never being pushed onto the navigationController's stack in the first place. Has anyone had a simliar issue or know what I'm doing wrong? I have a feeling this is something very simple, but I just can't get it to work.
Thanks!
Jeff
|