Reputation: 9
I have the following problem:
My app has 3 views, between the first and the second is necessary to use Navigation Controller but the third is not necessary, the occult with [[self navigationController] setNavigationBarHidden: NO animated: YES];
and return to the second mendiante a button and segue.
My problem is that when you return to the second view, it appears as navigation controller, but when you press back, it goes to the third view and not the first as it should. Can you help?
Upvotes: 0
Views: 78
Reputation: 436
Do not use "push segue" from third view to second view. Use
- (IBAction)backToPreviousView:(id)sender {
[self.navigationController popViewControllerAnimated:NO];
}
for third view button touch up event instead. Here is a snapshot for your preview.
Upvotes: 1