How do I fix the gap between my view and my navigation bar when the call status bar is active?

149 Views Asked by At

I am using ECSlidingViewController for navigation but I don't believe this is the cause of my problem. Below is an example of my problem.


enter image description here


I have tried using viewDidLayoutSubviews to fix this and I have changed the settings for navigationBar translucency to NO. I thought with proper constraints in my view that auto layout would handle something like this. Does anyone have any suggestions?

1

There are 1 best solutions below

0
On

In viewDidLoad, add:

[self.navigationController setNavigationBarHidden:YES animated:NO];
[self.navigationController setNavigationBarHidden:NO animated:NO];