فهرست منبع

群组设置底部按钮位置

Steven 1 سال پیش
والد
کامیت
046b840827

+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Common/Base/WebView/KSBaseWKWebViewController.m

@@ -890,7 +890,7 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
     [self.mediaManager noAlertCallback:^(NSString * _Nullable videoUrl, NSMutableArray * _Nullable imageArray, NSMutableArray * _Nullable imageAsset) {
         
         if (type == MEDIATYPE_PHOTO) {
-            [self uploadImageArray:imageArray bucket:bucketName];
+            [weakSelf uploadImageArray:imageArray bucket:bucketName];
         }
         else {
             NSLog(@"%@", videoUrl);

+ 0 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Chat/Group/Controller/GroupSettingViewController.m

@@ -50,7 +50,6 @@
 }
 
 - (void)configUI {
-    self.scrollView.frame = CGRectMake(0, 0, KPortraitWidth, KPortraitHeight - kNaviBarHeight - iPhoneXSafeBottomMargin);
     self.bodyView = [GroupSettingBodyView shareInstance];
     CGFloat viewHeight = [self.bodyView getViewHeight:self.groupRoleType];
     CGFloat height = KPortraitHeight - kNaviBarHeight - iPhoneXSafeBottomMargin > viewHeight ? KPortraitHeight - kNaviBarHeight - iPhoneXSafeBottomMargin : viewHeight;

+ 3 - 3
KulexiuForTeacher/KulexiuForTeacher/Module/Chat/Group/View/GroupSettingBodyView.m

@@ -413,12 +413,12 @@ typedef void(^ChooseMemberCallback)(NSString *targetId);
 }
 
 - (CGFloat)getViewHeight:(NSString *)roleType {
-    BOOL bottomSpace = IS_iPhoneX ? iPhoneXSafeBottomMargin : 20;
+    CGFloat bottomSpace = IS_iPhoneX ? iPhoneXSafeBottomMargin : 20;
     if ([self.groupRoleType isEqualToString:@"Owner"] || [self.groupRoleType isEqualToString:@"Admin"]) {
-        return 790 + bottomSpace;
+        return 802 + bottomSpace;
     }
     else {
-        return 680 + bottomSpace;
+        return 692 + bottomSpace;
     }
 }
 /*

+ 2 - 2
KulexiuForTeacher/KulexiuForTeacher/Module/Chat/Group/View/GroupSettingBodyView.xib

@@ -11,7 +11,7 @@
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
         <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
         <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="GroupSettingBodyView">
-            <rect key="frame" x="0.0" y="0.0" width="414" height="817"/>
+            <rect key="frame" x="0.0" y="0.0" width="414" height="802"/>
             <autoresizingMask key="autoresizingMask"/>
             <subviews>
                 <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AOx-4a-71e">
@@ -517,7 +517,7 @@
                 <outlet property="muteButton" destination="3mj-vH-cZt" id="jaq-9l-IXB"/>
                 <outlet property="switchButton" destination="fl2-Rm-1E9" id="xTR-c2-UCT"/>
             </connections>
-            <point key="canvasLocation" x="136.23188405797103" y="-59.933035714285708"/>
+            <point key="canvasLocation" x="136.23188405797103" y="-51.227678571428569"/>
         </view>
         <tapGestureRecognizer id="hZ3-TO-Qmd">
             <connections>