Objective-c: after updating ios 11 black status bar in swrevealcontroller

I am working on an application. Prior to ios 11 update, it worked fine. But after upgrading to ios 11 and upgrading Xcode, I'm struggling with the error. I have a third-party menu using the SWRevealController structure: https://github.com/John-Lluch/SWRevealViewController .

After upgrading to ios 11, it looks like this:

after ios 11 update

There is something wrong with the status bar. It used to be blue, like the rest. I do not see the text in the status bar (for example, time), but I see a green battery when I place all the menus on the screen. As you can see, the other viewcontroller is working fine (like the whole application). Only the menu is problematic. After some debugging, I think self.navigationController.navigationBar is not high enough.

What's going on here?

Thank!

+4
source share
1 answer

This is still an open Cordova error, first recorded here in June 2017.

The fix described there worked in my case:

A clean HTML way to fix this is to add viewport-fit=coverto the tag meta viewport.


Another way to fix it:

[[webView scrollView] setContentInsetAdjustmentBehavior: UIScrollViewContentInsetAdjustmentNever];

0
source

Source: https://habr.com/ru/post/1686885/


All Articles