I am trying to show a navigation controller when I submit PresentViewControllerto navigate the screen. I solved this problem, but I ran into another problem. The problem is when I click on the screen that the back button is displayed on the next screen with the navigation controller. But when I try PresentViewController, this time navigation bar is visible, but not backward.
Here is my code:
- (IBAction)clickMeAction:(id)sender
{
ViewController1 *viewcontrol = [self.storyboard instantiateViewControllerWithIdentifier:@"ViewID"];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:viewcontrol];
[self presentViewController:navigationController animated:YES completion:nil];
}
Here is my conclusion:
with pressing:

with modal:

Please help me.
Thank.:)
source
share