Best way to go between views

Discussion in 'iOS Programming' started by Branskins, Jun 5, 2011.

  1. Branskins macrumors 65816

    Dec 8, 2008
    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!
  2. jnoxx macrumors 65816


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

Share This Page