浏览代码

pad 横屏隐藏状态栏

Steven 1 年之前
父节点
当前提交
6102cbeda3

+ 6 - 0
KulexiuForTeacher/KulexiuForTeacher/Common/Base/KSBaseWKWebViewController.m

@@ -114,11 +114,17 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
 - (void)changeOrientation:(BOOL)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];

+ 0 - 1
KulexiuForTeacher/KulexiuForTeacher/Common/Base/KSVideoRecordManager.m

@@ -11,7 +11,6 @@
 #import <AssetsLibrary/AssetsLibrary.h>
 #import "TZImageManager.h"
 #import "KSVideoEditor.h"
-#import "KSUploadManager.h"
 
 @interface KSVideoRecordManager ()<AVCaptureFileOutputRecordingDelegate>
 

+ 3 - 0
KulexiuForTeacher/KulexiuForTeacher/Common/Base/LoginManger/KSLoginManager.m

@@ -83,6 +83,9 @@
         AppDelegate* delegate = [AppDelegate shareAppDelegate];
         if (delegate.allowAutoRotate) {
             delegate.allowAutoRotate = NO;
+            if (IS_IPAD) {
+                logonVC.zh_statusBarHidden = NO;
+            }
             [UIDevice switchNewOrientation:UIInterfaceOrientationPortrait inController:logonVC];
         }
     }

+ 0 - 1
KulexiuForTeacher/KulexiuForTeacher/Common/MediaMerge/AudioMerge/KSMediaMergeView.m

@@ -13,7 +13,6 @@
 #import "KSPlayerSliderView.h"
 #import "kSNewPlayer.h"
 #import "KSVideoPlayerView.h"
-#import "KSUploadManager.h"
 #import "KSAudioPlayAnimationView.h"
 #import "KSNewAlertView.h"
 #import "MusicPublistAlert.h"

+ 6 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/Works/Controller/KSVideoCropViewController.m

@@ -42,12 +42,17 @@
 - (void)changeOrientation:(BOOL)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];

+ 1 - 2
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/Works/Model/UserMusicFormalModel.h

@@ -7,8 +7,6 @@
 
 #import <Foundation/Foundation.h>
 
-
-
 @interface UserMusicFormalModel : NSObject <NSCoding, NSCopying>
 
 @property (nonatomic, strong) NSString *username;
@@ -37,6 +35,7 @@
 @property (nonatomic, strong) NSString *musicSheetSubjectName;
 @property (nonatomic, strong) NSString *desc;
 @property (nonatomic, strong) NSString *userId;
+@property (nonatomic, strong) NSString *expireTime;
 
 @property (nonatomic, assign) BOOL isChoose;
 

+ 9 - 4
KulexiuForTeacher/KulexiuForTeacher/Module/Mine/Works/Model/UserMusicFormalModel.m

@@ -34,6 +34,8 @@ NSString *const kUserMusicFormalModelCreateTime = @"createTime";
 NSString *const kUserMusicFormalModelMusicSheetSubjectName = @"musicSheetSubjectName";
 NSString *const kUserMusicFormalModelDesc = @"desc";
 NSString *const kUserMusicFormalModelUserId = @"userId";
+NSString *const kUserMusicFormalModelExpireTime = @"expireTime";
+
 
 
 @interface UserMusicFormalModel ()
@@ -70,7 +72,7 @@ NSString *const kUserMusicFormalModelUserId = @"userId";
 @synthesize musicSheetSubjectName = _musicSheetSubjectName;
 @synthesize desc = _desc;
 @synthesize userId = _userId;
-
+@synthesize expireTime = _expireTime;
 
 + (instancetype)modelObjectWithDictionary:(NSDictionary *)dict
 {
@@ -110,7 +112,7 @@ NSString *const kUserMusicFormalModelUserId = @"userId";
             self.musicSheetSubjectName = [self objectOrNilForKey:kUserMusicFormalModelMusicSheetSubjectName fromDictionary:dict];
             self.desc = [self objectOrNilForKey:kUserMusicFormalModelDesc fromDictionary:dict];
             self.userId = [self objectOrNilForKey:kUserMusicFormalModelUserId fromDictionary:dict];
-
+        self.expireTime = [self objectOrNilForKey:kUserMusicFormalModelExpireTime fromDictionary:dict];
     }
     
     return self;
@@ -146,11 +148,11 @@ NSString *const kUserMusicFormalModelUserId = @"userId";
     [mutableDict setValue:self.musicSheetSubjectName forKey:kUserMusicFormalModelMusicSheetSubjectName];
     [mutableDict setValue:self.desc forKey:kUserMusicFormalModelDesc];
     [mutableDict setValue:self.userId forKey:kUserMusicFormalModelUserId];
-
+    [mutableDict setValue:self.expireTime forKey:kUserMusicFormalModelExpireTime];
     return [NSDictionary dictionaryWithDictionary:mutableDict];
 }
 
-- (NSString *)description 
+- (NSString *)description
 {
     return [NSString stringWithFormat:@"%@", [self dictionaryRepresentation]];
 }
@@ -199,6 +201,7 @@ NSString *const kUserMusicFormalModelUserId = @"userId";
     self.musicSheetSubjectName = [aDecoder decodeObjectForKey:kUserMusicFormalModelMusicSheetSubjectName];
     self.desc = [aDecoder decodeObjectForKey:kUserMusicFormalModelDesc];
     self.userId = [aDecoder decodeObjectForKey:kUserMusicFormalModelUserId];
+    self.expireTime = [aDecoder decodeObjectForKey:kUserMusicFormalModelExpireTime];
     return self;
 }
 
@@ -231,6 +234,7 @@ NSString *const kUserMusicFormalModelUserId = @"userId";
     [aCoder encodeObject:_musicSheetSubjectName forKey:kUserMusicFormalModelMusicSheetSubjectName];
     [aCoder encodeObject:_desc forKey:kUserMusicFormalModelDesc];
     [aCoder encodeObject:_userId forKey:kUserMusicFormalModelUserId];
+    [aCoder encodeObject:_expireTime forKey:kUserMusicFormalModelExpireTime];
 }
 
 - (id)copyWithZone:(NSZone *)zone
@@ -265,6 +269,7 @@ NSString *const kUserMusicFormalModelUserId = @"userId";
         copy.musicSheetSubjectName = [self.musicSheetSubjectName copyWithZone:zone];
         copy.desc = [self.desc copyWithZone:zone];
         copy.userId = [self.userId copyWithZone:zone];
+        copy.expireTime = [self.expireTime copyWithZone:zone];
     }
     
     return copy;