Adding UINavigationController to a Modal View?

Discussion in 'iOS Programming' started by ppilone, Jul 15, 2008.

  1. ppilone macrumors 6502

    Jan 20, 2008
    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!
  2. Farani macrumors 6502

    Oct 21, 2007
    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...

Share This Page