瀏覽代碼

iphoneX _ frame fixed

Chris 5 年之前
父節點
當前提交
f941225237

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/PublishModule/AliyunVideo/AlivcShortVideo/ShortVideoFile/VideoCrop/Controller/AliyunCropViewController.m

@@ -122,7 +122,7 @@ typedef NS_ENUM(NSInteger, AliyunCropPlayerStatus) {
 }
 - (void)setupSubViews {
     
-    self.view.backgroundColor = [AliyunIConfig config].backgroundColor;
+    self.view.backgroundColor = RGBToColor(35, 42, 66);
     self.automaticallyAdjustsScrollViewInsets = NO;
     UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(previewTapGesture)];
     self.previewScrollView = [[UIScrollView alloc] init];

+ 0 - 2
RainbowPlanet/RainbowPlanet/Modules/PublishModule/AliyunVideo/AlivcShortVideo/ShortVideoFile/VideoRecord/Controller/AliyunMagicCameraViewController.m

@@ -563,7 +563,6 @@
     _magicCameraView.musicButton.enabled = ![_clipManager partCount];
     NSLog(@"%zd",[_clipManager partCount]);
     [[UIApplication sharedApplication] setIdleTimerDisabled:YES];//录制模块禁止自动熄屏
-    [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
     [self startRetainCameraRotate];
     //禁用侧滑手势
     self.navigationController.interactivePopGestureRecognizer.enabled = NO;
@@ -580,7 +579,6 @@
         [self stopPreview];
     }
     [[UIApplication sharedApplication] setIdleTimerDisabled:NO];
-    [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
     //启用侧滑手势
     self.navigationController.interactivePopGestureRecognizer.enabled = YES;
     [self.motionManager stopDeviceMotionUpdates];

+ 3 - 4
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishTakePhoto/PublishConfirmPhotoController.swift

@@ -34,18 +34,17 @@ class PublishConfirmPhotoController: BaseViewController {
     
     override func setupLayouts() {        
         photoImageView.snp.makeConstraints { (make) in
-            make.top.left.right.equalToSuperview()
-            make.bottom.equalTo(-kSafeTabBarHeight)
+            make.edges.equalToSuperview()
         }
         retakeBtn.snp.makeConstraints { (make) in
             make.left.equalTo(photoImageView.snp_left)
-            make.bottom.equalTo(photoImageView.snp_bottom)
+            make.bottom.equalTo(-kSafeTabBarHeight)
             make.width.equalTo(125)
             make.height.equalTo(48)
         }
         usePhotoBtn.snp.makeConstraints { (make) in
             make.right.equalTo(photoImageView.snp_right)
-            make.bottom.equalTo(photoImageView.snp_bottom)
+            make.bottom.equalTo(-kSafeTabBarHeight)
             make.width.equalTo(125)
             make.height.equalTo(48)
         }

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishTakePhoto/PublishTakePhotoController.swift

@@ -47,7 +47,7 @@ class PublishTakePhotoController: BaseViewController {
     
     override func setupLayouts() {
         backButton.snp.makeConstraints { (make) in
-            make.top.equalTo(23)
+            make.top.equalTo(kSafeStatusBarHeight+3)
             make.left.equalTo(5)
             make.width.equalTo(40)
             make.height.equalTo(40)