Menu

UINavigationController and Page Index

Bryan
2014-02-02
2014-02-03
  • Bryan

    Bryan - 2014-02-02

    Hello group,
    I've been having problems with the UINavigation Controller. I have many "pages" on my controller that takes me into different "branches/pages", but they seems to not "pop" back (navigate back) to the correct place. I think it has something to do with the "pageIndex", but I cannot figure out how to make it do what I want.
    I've attached a graphic to show what I want. If anyone has any ideas on how to do this without the page index messing up the "back" button I would appreciate it.

    https://drive.google.com/folderview?id=0BzB2kZI5pKPSZVVsMFF4TTRTQWc&usp=sharing

    Many thanks.
    Bryan

     
  • Bryan

    Bryan - 2014-02-02

    Here the attachment if the link does not work.

    Thanks,
    Bryan

     
  • Bryan

    Bryan - 2014-02-02

    I think I may have figured it out by adjusting the PageIndex into a logical order.

    Brayn

     
  • Fenistil

    Fenistil - 2014-02-02

    Hi!

    How do you pop the next page to the controller? I use

    NavigationController1.PushViewController(Page2,true);
    

    and it works correctly. The pageindex only used to set the main page (PageIndex=0), it's not neccesary on the other pages. They'll appear in the order you Push (go forward) or Pop (go backward) them. Notice, that you can Pop only a page that has been Pushed before.

    I hope it helps.

    Greetings

     
  • Bryan

    Bryan - 2014-02-03

    Thanks Fenistil!
    Yes, I use the same method.
    I'm not sure why it was not working correctly at first, but it seems to work ok now.

    Cheers,
    Bryan

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.