I have been working with iOS5 on an app for a client, and I need to execute a different segue dynamically from a UINavigationController based on a state of the tableviewcell.
If you see the storyboard (attached here http://www.online.com.bo/apple/multinavigationsegues.png), basicaly there is 2 segues generated from the navigation controller, I need to "bypass" the navigation controller to execute one of the segues, but I'm not sure how.
Attached is the code I have on the ROOT tableview controller to perform the base segue.
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([[segue identifier] isEqualToString:@"CategorySegue"])
{
UINavigationController *navigationController = segue.destinationViewController;
CategoryDetailsViewController *categoryDetailsViewController = [[navigationController viewControllers] objectAtIndex:0];
categoryDetailsViewController.delegate = self;
categoryDetailsViewController.templateID = self.templateID;
}
}
Please Help !!!