|
@@ -958,12 +958,18 @@ static int clickPraiseBtnTimes = 0;
|
|
|
- (void)changeOrientation:(BOOL)isLandScape {
|
|
|
self.landScape = isLandScape;
|
|
|
if (isLandScape) {
|
|
|
+ if (IS_IPAD) {
|
|
|
+ self.zh_statusBarHidden = YES;
|
|
|
+ }
|
|
|
// 切换到横屏
|
|
|
AppDelegate* delegate = (AppDelegate*)[UIApplication sharedApplication].delegate;
|
|
|
delegate.allowAutoRotate = YES;
|
|
|
[UIDevice switchNewOrientation:UIInterfaceOrientationLandscapeRight inController:self];
|
|
|
}
|
|
|
else {
|
|
|
+ if (IS_IPAD) {
|
|
|
+ self.zh_statusBarHidden = NO;
|
|
|
+ }
|
|
|
AppDelegate* delegate = (AppDelegate*)[UIApplication sharedApplication].delegate;
|
|
|
delegate.allowAutoRotate = NO;
|
|
|
[UIDevice switchNewOrientation:UIInterfaceOrientationPortrait inController:self];
|