forked from didi/DoKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:在iOS9.0系统中直接不显示状态栏的问题,但是在开启cpu监听等状态时,还是不显示状态栏,暂未找到解决版本
- Loading branch information
Showing
3 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
iOS/DoraemonKit/Src/Core/Base/DoraemonStatusBarViewController.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// DoraemonStatusBarViewController.h | ||
// AFNetworking | ||
// | ||
// Created by 张伟 on 2019/2/22. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface DoraemonStatusBarViewController : UIViewController | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
38 changes: 38 additions & 0 deletions
38
iOS/DoraemonKit/Src/Core/Base/DoraemonStatusBarViewController.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// DoraemonStatusBarViewController.m | ||
// AFNetworking | ||
// | ||
// Created by 张伟 on 2019/2/22. | ||
// | ||
|
||
#import "DoraemonStatusBarViewController.h" | ||
|
||
@interface DoraemonStatusBarViewController () | ||
|
||
@end | ||
|
||
@implementation DoraemonStatusBarViewController | ||
|
||
- (void)viewDidLoad { | ||
[super viewDidLoad]; | ||
// Do any additional setup after loading the view. | ||
} | ||
- (BOOL)prefersStatusBarHidden | ||
{ | ||
return NO; | ||
} | ||
- (UIStatusBarStyle)preferredStatusBarStyle | ||
{ | ||
return UIStatusBarStyleDefault; | ||
} | ||
/* | ||
#pragma mark - Navigation | ||
// In a storyboard-based application, you will often want to do a little preparation before navigation | ||
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { | ||
// Get the new view controller using [segue destinationViewController]. | ||
// Pass the selected object to the new view controller. | ||
} | ||
*/ | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters