- (void)viewWillAppear:(BOOL)animated
{
[self.navigationController setNavigationBarHidden:YES animated:animated];
[super viewWillAppear:animated];
}
- (void)viewWillDisappear:(BOOL)animated
{
[self.navigationController setNavigationBarHidden:NO animated:animated];
[super viewWillDisappear:animated];
}
It's a screen shot when up corner it's slightly display.
I used this code for hide the navigation bar in view.but when view will start then it's give me effect like navigation bar are present.
But, I want to remove this effect or remove the navigation bar only this view.
In Case if you are using storyboard Make sure green arrow highlighted fields are unchecked
Option 2
Put below lines of code in didFinishLaunchingWithOptions
[self.navigationController setNavigationBarHidden:YES]; –