I've built an app that populates a tableview with numerous items. You can click on an item and it will open a detailed view of that item. You can then click a button that opens another view that shows specifics for the detailed item. I also have a few more nested views that are shown until you get to a completion view. I want a button click to pop me straight back to the tableview but haven't found a way. I've tried the following ideas:
1st (which will only dismiss to the previous screen): [self dismissViewControllerAnimated:YES completion:nil];
2nd (doesn't work at all): [self.navigationController popToRootViewControllerAnimated:NO];
3rd (doesn't do anything): WorkOrderTableViewController *pushTable = [[WorkOrderTableViewController alloc] init]; [UINavigationController pushViewController:pushTable animated:YES];
4th (doesn't do anything): WorkOrderTableViewController *pushTable = [[WorkOrderTableViewController alloc] init]; [self.navigationController pushViewController:pushTable animated:YES];
I've even tried calling the segues from previous screens/views. Also tried a class within a previous view controller.
Is there a way to jump right back to the table view? If so, how?
popToViewController:animated:
? – Phillip Mills