Commit 5b1e65594d2a1602879264837f03ce19da1b6b1a
1 parent
d1054ec8
点播滑动退出,播放器不退出
Showing
1 changed file
with
11 additions
and
4 deletions
LiveVideoCloud/Classes/Sections/homeSections/Controller/LVCVodPlayerController.m
| ... | ... | @@ -61,6 +61,16 @@ typedef enum { |
| 61 | 61 | - (void)viewWillDisappear:(BOOL)animated |
| 62 | 62 | { |
| 63 | 63 | [super viewWillDisappear:animated]; |
| 64 | + | |
| 65 | + [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; | |
| 66 | + [[UIApplication sharedApplication] setStatusBarHidden: NO withAnimation:UIStatusBarAnimationNone]; | |
| 67 | + | |
| 68 | + self.navigationController.navigationBar.hidden = NO; | |
| 69 | +} | |
| 70 | + | |
| 71 | +- (void)viewDidDisappear:(BOOL)animated { | |
| 72 | + [super viewDidDisappear:animated]; | |
| 73 | + | |
| 64 | 74 | [_player stop]; |
| 65 | 75 | [_autoHideTimer invalidate]; |
| 66 | 76 | _autoHideTimer = nil; |
| ... | ... | @@ -68,10 +78,7 @@ typedef enum { |
| 68 | 78 | _currentTimer = nil; |
| 69 | 79 | [[NSNotificationCenter defaultCenter]removeObserver:self name:MPMoviePlayerPlaybackStateDidChangeNotification object:nil]; |
| 70 | 80 | [_playerSuperView removeFromSuperview]; |
| 71 | - | |
| 72 | - [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; | |
| 73 | - [[UIApplication sharedApplication] setStatusBarHidden: NO withAnimation:UIStatusBarAnimationNone]; | |
| 74 | - self.navigationController.navigationBar.hidden = NO; | |
| 81 | + | |
| 75 | 82 | } |
| 76 | 83 | |
| 77 | 84 | - (void)viewDidLoad { | ... | ... |