Best way to go between views

Discussion in 'iPhone/iPad Programming' started by Branskins, Jun 5, 2011.

  1. macrumors 6502a

    Joined:
    Dec 8, 2008
    #1
    I kind of want the behavior of the UINavigationController, but I don't want to depend on having to move back through the stack.

    I'll try to explain: let's say we have 4 "save slots" on the main screen. When you choose one of the slots, it should load the view with the data from that save slot. Right now this sounds like something for the navigation controller.

    But what if from this save slot you enter the settings and want a button to go back to the main screen without having to press back twice (back->back-> and you are on the main screen)?

    What is the best way to jump around views without having to the rely on a stack to push and pop views? I don't want to have people pressing back many times to get somewhere and would like direct buttons to jump around.

    I hope my question is clear!
    Thanks
     
  2. macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    U can also just make a button which calls the function.
    Code:
    [self.navigationController popToRootViewControllerAnimated:YES];
    Isn't it fixed then?
     

Share This Page