Allow video on landscape with only-portrait app

前端 未结 8 1396
没有蜡笔的小新
没有蜡笔的小新 2020-12-13 06:35

I have a UIWebView included in a UIViewController which is a descendant of UINavigationController. It looks like this:

8条回答
  •  一生所求
    2020-12-13 07:20

    I encountered exactly the same issue and used the same code as @entropid did. However the accepted solution did not work for me.

    It took me hours to come up with the following one-line fix that made things working for me:

    - (void)viewWillLayoutSubviews {
        [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
    }
    

提交回复
热议问题