Q: PresentViewController hides Navigation bar in iOS I am trying to show navigation controller when i present PresentViewController for navigate a screen. I solved this problem, but i faced another problem. Problem is when i push to a screen that time back button is visible on next screen with navigation controller. But when i am trying to PresentViewController, that time navigation bar is visible but not back button.
Here is my code:
 - (IBAction)clickMeAction:(id)sender
 {
    ViewController1 *viewcontrol = [self.storyboard instantiateViewControllerWithIdentifier:@"ViewID"];
    //[self.navigationController pushViewController:viewcontrol animated:YES]; // this is for push to viewcontroller


    UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:viewcontrol];
    [self presentViewController:navigationController animated:YES completion:nil]; // This is for modalviewcontroller
 }

Here is my output:
with push:

with modal:

Please help me.

A: Method 1:
[navigationController presentViewController:navigationController animated:YES completion:^{
             [navigationController setNavigationBarHidden:YES animated:NO];
        }];

Method 2: in presentViewController
- (void)viewWillAppear:(BOOL)animated {
        [super viewWillAppear:animated];
        self.navigationController.navigationBarHidden = YES;
}

