I have a navigation controller (XCode4 with Storyboards and ARC) where a segue is connected to each individual ViewController (7 of them). Normally, I tap a row in the Nav contoller which takes me to the correct scene. However, there are times that I want to go from scene “A” to scene “C” using segues, then from “C” to “B”, which has NOT been placed on the stack by going through the Nav Controller.
Is this somehow possible (to go from scene “C” to scene “B”)?
UPDATE: this is the code to put controller on the stack:
EnterDataViewController *edvc = [[EnterDataViewController alloc]init];
NSMutableArray *ma = self.navigationController.viewControllers;
[ma insertObject:edvc atIndex:1];
self.navigationController.viewControllers = ma;
[self.navigationController popToViewController:[self.navigationController.viewControllers objectAtIndex: 1] animated:YES];
Insert the new view controller below the top one in the hierarchy, with animation off. Then, pop. 🙂