在UITableView
中需要点击俩次才能触发全屏
注释
ZFPlayer
下的ZFPlayerView.m
文件中的代码:
/** 全屏 */
- (void)_fullScreenAction {
// if (ZFPlayerShared.isLockScreen) {
// [self unLockTheScreen];
// return;
// }
if (self.isFullScreen) {
[self interfaceOrientation:UIInterfaceOrientationPortrait];
self.isFullScreen = NO;
return;
} else {
UIDeviceOrientation orientation = [UIDevice currentDevice].orientation;
if (orientation == UIDeviceOrientationLandscapeRight) {
[self interfaceOrientation:UIInterfaceOrientationLandscapeLeft];
} else {
[self interfaceOrientation:UIInterfaceOrientationLandscapeRight];
}
self.isFullScreen = YES;
}
}
全屏异常
-
ZFPlayer
的全屏功能已经做好了,但是注意:
iOS6.0之后,设置状态条的方法能使用的前提是shouldAutorotate为NO,也就是说这个视图控制器内,旋转要关掉;
// 也就是说在实现这个方法的时候-(BOOL)shouldAutorotate返回值要为NO
在第三方库MMDrawerController
中有设置shouldAutorotate
返回YES
。所以需要修改为返回NO
网友评论