I make a UINavigationController child of another view controller through containment. Everything works fine, except for the strange problem that occurs when you turn on the application with the status bar in a call state , and then turn it off after the user interface of the application is on the screen. A strange black gap appears instead of the status bar.
Consider the attached sample application below:
The easiest way to reproduce the problem:
- Launch iOS Simulator.
- Press โ + Y to turn on the call status bar. The status bar will turn wide and green.
- Launch the application manually and wait for the navigation controller to appear.
- Press โ + Y again to turn off the call status bar.
The user interface should now look like this: 
Does anyone know how to fix the problem?
ios uiviewcontroller statusbar uinavigationcontroller
Kerido
source share