View Full Version : Best way to go between views

Jun 5, 2011, 11:41 PM
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!

Jun 6, 2011, 02:25 AM
U can also just make a button which calls the function.
[self.navigationController popToRootViewControllerAnimated:YES];

Isn't it fixed then?