PDA

View Full Version : Adding UINavigationController to a Modal View?




ppilone
Jul 15, 2008, 10:19 PM
Hey all,

I'll try to keep this short - I have a UINavigationController handling my views. On my root view I have an option for the user to add an item to the view's tableView which then triggers a modal view (very similar to the "Add a Contact" in Contacts). So now I want to have this modal view also be able to navigate - pretty much identical to how the add a contact in Contacts work.

However, I can't figure out how to do this. When the modal view is loaded the original navigation bar (from the main navigation controller) is hidden behind the view. If I try to create an entirely new navigation controller to the modal view (this being the root view) I can't get it to actually show up.

In short I want it to appear/work identical to when you add a contact in Contacts but can't figure out how to do it - any help would be much appreciated!



Farani
Sep 2, 2008, 04:44 PM
Hey all,

I'll try to keep this short - I have a UINavigationController handling my views. On my root view I have an option for the user to add an item to the view's tableView which then triggers a modal view (very similar to the "Add a Contact" in Contacts). So now I want to have this modal view also be able to navigate - pretty much identical to how the add a contact in Contacts work.

However, I can't figure out how to do this. When the modal view is loaded the original navigation bar (from the main navigation controller) is hidden behind the view. If I try to create an entirely new navigation controller to the modal view (this being the root view) I can't get it to actually show up.

In short I want it to appear/work identical to when you add a contact in Contacts but can't figure out how to do it - any help would be much appreciated!

Did you solve your problem? I was struggling with this for an hour or two and then I looked at the BonjourWeb example from the Apple Dev Center and I figured it out. If you want me to, I'll post up some code once it get it 100% working...