Hey Everyone,
So, I currently have a main view where a user selects the first cell, which leads him to view 2 (that i called by using pushViewController) and from there, the user selects another cell which leads him to view 3.
In view 3, I created a "Save" button on the navigation bar.
My question is: how do i return back to the main view after the user hits Save? Where the order of my views go like this:
Main view -> View 2 -> View 3 -> Main view
I tried using:
[[self navigationController] pushViewController:[MainViewController alloc] animated:YES];
but this just pushes the main view onto view 3, making it look like a subview with a back button.
Please, can someone tell me how to solve this?
Thanks,
Sarah