Skip to content

Instantly share code, notes, and snippets.

@zyroball
Last active November 13, 2018 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zyroball/3502122acd46eb5d390893fdd05e5854 to your computer and use it in GitHub Desktop.
Save zyroball/3502122acd46eb5d390893fdd05e5854 to your computer and use it in GitHub Desktop.
[iOS][iOS12]UIWebViewにおいて動画再生後にステータスバーが変更されてしまう ref: https://qiita.com/yu_okb/items/3c0489a99092719f4404
#import "UINavigationControllerExtension.h"
@interface UINavigationControllerExtension()
@end
@implementation UINavigationControllerExtension
- (void)viewDidLoad
{
[super viewDidLoad];
[UIApplication sharedApplication].statusBarHidden = NO;
}
- (BOOL)prefersStatusBarHidden
{
return NO;
}
- (UIStatusBarStyle)preferredStatusBarStyle
{
return UIStatusBarStyleDefault;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment