Steven 1 year ago
parent
commit
94434642b0

+ 0 - 22
KulexiuForTeacher/KulexiuForTeacher/Assets.xcassets/SealClass/TopView/line_switch.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "filename" : "line_switch@2x.png",
-      "idiom" : "universal",
-      "scale" : "2x"
-    },
-    {
-      "filename" : "line_switch@3x.png",
-      "idiom" : "universal",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "author" : "xcode",
-    "version" : 1
-  }
-}

BIN
KulexiuForTeacher/KulexiuForTeacher/Assets.xcassets/SealClass/TopView/line_switch.imageset/line_switch@2x.png


BIN
KulexiuForTeacher/KulexiuForTeacher/Assets.xcassets/SealClass/TopView/line_switch.imageset/line_switch@3x.png


+ 1 - 1
KulexiuForTeacher/KulexiuForTeacher/Common/Base/KSNetworkingManager.m

@@ -2288,7 +2288,7 @@
 /// @param success 成功
 /// @param faliure 失败
 + (void)getWhiteBoardRoomMessage:(NSString *)post url:(NSString *)url parm:(NSDictionary *)parm success:(void(^)(NSDictionary *dic))success faliure:(void(^)(NSError *error))faliure {
-    [self configRequestMethodJSON];
+    [self configRequestMethodForm];
     [self request:post andWithUrl:url and:parm success:success faliure:faliure];
 }
 

+ 2 - 0
KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/View/DanMuChat/TXDanMuView.m

@@ -240,6 +240,8 @@
         _messageListView.rowHeight = UITableViewAutomaticDimension;
         _messageListView.estimatedSectionHeaderHeight =0;
         _messageListView.estimatedSectionFooterHeight =0;
+        _messageListView.showsVerticalScrollIndicator = NO;
+        _messageListView.showsHorizontalScrollIndicator = NO;
         if (@available(iOS 11.0, *)) {
             _messageListView.insetsContentViewsToSafeArea = NO;
         }

+ 2 - 0
KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/View/MemberList/ClassMemberListView.m

@@ -114,6 +114,8 @@
     self.pagerView.mainTableView.backgroundColor = [UIColor clearColor];
     self.pagerView.listContainerView.backgroundColor = [UIColor clearColor];
     self.pagerView.mainTableView.gestureDelegate = self;
+    self.pagerView.mainTableView.insetsContentViewsToSafeArea = NO;
+
     self.categoryView.listContainer = (id<JXCategoryViewListContainer>)self.pagerView.listContainerView;
     self.pagerView.listContainerView.listCellBackgroundColor = [UIColor clearColor];
     [self addSubview:self.pagerView];

+ 4 - 2
KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/View/MemberList/MemberListBodyView.m

@@ -37,9 +37,10 @@
         self.tableView.dataSource = self;
         self.tableView.delegate = self;
         self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
+        self.tableView.insetsContentViewsToSafeArea = NO;
         self.tableView.rowHeight = 50;
         [self addSubview:self.tableView];
-        UIView *headView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 10)];
+        UIView *headView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 280, 10)];
         headView.backgroundColor = [UIColor clearColor];
         self.tableView.tableHeaderView = headView;
         [self.tableView registerNib:[UINib nibWithNibName:@"MemberListCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:@"MemberListCell"];
@@ -124,6 +125,7 @@
     self.tableView.frame = CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height - bottomHeight);
     if (self.selectIndex == 0) {
         [self addSubview:self.bottomView];
+        self.bottomView.frame = CGRectMake(0, self.bounds.size.height - 50, self.bounds.size.width, 50);
     }
 }
 
@@ -263,7 +265,7 @@
 - (MemberBottomView *)bottomView {
     if (!_bottomView) {
         MJWeakSelf;
-        _bottomView = [[MemberBottomView alloc] initWithFrame:CGRectMake(0, self.bounds.size.height - 50, self.bounds.size.width, 50) callback:^(BOOL isOpen) {
+        _bottomView = [[MemberBottomView alloc] initWithFrame:CGRectZero callback:^(BOOL isOpen) {
             [weakSelf allMicAction:isOpen];
         }];
     }

+ 85 - 73
KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/View/MemberList/MemberListCell.xib

@@ -9,86 +9,98 @@
     <objects>
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
         <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
-        <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="MemberListCell">
-            <rect key="frame" x="0.0" y="0.0" width="320" height="50"/>
-            <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
-            <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
-                <rect key="frame" x="0.0" y="0.0" width="320" height="50"/>
+        <tableViewCell contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="MemberListCell">
+            <rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
+            <autoresizingMask key="autoresizingMask"/>
+            <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
+                <rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
                 <autoresizingMask key="autoresizingMask"/>
                 <subviews>
-                    <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="user_default_avatal" translatesAutoresizingMaskIntoConstraints="NO" id="ojL-FB-WJJ">
-                        <rect key="frame" x="10" y="5" width="40" height="40"/>
+                    <view contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" translatesAutoresizingMaskIntoConstraints="NO" id="z3z-sY-iZq">
+                        <rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
+                        <subviews>
+                            <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="user_default_avatal" translatesAutoresizingMaskIntoConstraints="NO" id="ojL-FB-WJJ">
+                                <rect key="frame" x="10" y="5" width="40" height="40"/>
+                                <constraints>
+                                    <constraint firstAttribute="height" constant="40" id="w92-Ae-u7g"/>
+                                    <constraint firstAttribute="width" constant="40" id="yRh-iA-SHe"/>
+                                </constraints>
+                                <userDefinedRuntimeAttributes>
+                                    <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
+                                        <real key="value" value="20"/>
+                                    </userDefinedRuntimeAttribute>
+                                </userDefinedRuntimeAttributes>
+                            </imageView>
+                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zC0-bq-h3j">
+                                <rect key="frame" x="60" y="14" width="178" height="22"/>
+                                <constraints>
+                                    <constraint firstAttribute="height" constant="22" id="Bh9-Lf-Pob"/>
+                                </constraints>
+                                <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
+                                <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
+                                <nil key="highlightedColor"/>
+                            </label>
+                            <button opaque="NO" tag="1001" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YtC-Te-aTQ">
+                                <rect key="frame" x="270" y="5" width="40" height="40"/>
+                                <constraints>
+                                    <constraint firstAttribute="width" constant="40" id="Yeq-Qy-Faq"/>
+                                    <constraint firstAttribute="height" constant="40" id="ZOW-wh-g8A"/>
+                                </constraints>
+                                <state key="normal" image="classMember_micOn"/>
+                                <connections>
+                                    <action selector="tapEvent:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="VTN-R5-RZW"/>
+                                </connections>
+                            </button>
+                            <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="handup_image" translatesAutoresizingMaskIntoConstraints="NO" id="tEL-P5-Wsu">
+                                <rect key="frame" x="243" y="14" width="22" height="22"/>
+                                <constraints>
+                                    <constraint firstAttribute="width" constant="22" id="T1V-18-IdU"/>
+                                    <constraint firstAttribute="height" constant="22" id="oxR-LF-Iq5"/>
+                                </constraints>
+                            </imageView>
+                            <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="pWw-PT-bgM">
+                                <rect key="frame" x="60" y="49" width="305" height="1"/>
+                                <color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.94901960784313721" alpha="1" colorSpace="calibratedRGB"/>
+                                <constraints>
+                                    <constraint firstAttribute="height" constant="1" id="CmN-Ud-b2a"/>
+                                </constraints>
+                            </view>
+                            <button opaque="NO" tag="1002" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tlf-d9-VlB">
+                                <rect key="frame" x="315" y="5" width="40" height="40"/>
+                                <constraints>
+                                    <constraint firstAttribute="height" constant="40" id="6AD-KS-9TO"/>
+                                    <constraint firstAttribute="width" constant="40" id="fpP-5I-KRC"/>
+                                </constraints>
+                                <state key="normal" image="classMember_cameroOn"/>
+                                <connections>
+                                    <action selector="tapEvent:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="TUB-C6-lnj"/>
+                                </connections>
+                            </button>
+                        </subviews>
+                        <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                         <constraints>
-                            <constraint firstAttribute="height" constant="40" id="w92-Ae-u7g"/>
-                            <constraint firstAttribute="width" constant="40" id="yRh-iA-SHe"/>
-                        </constraints>
-                        <userDefinedRuntimeAttributes>
-                            <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
-                                <real key="value" value="20"/>
-                            </userDefinedRuntimeAttribute>
-                        </userDefinedRuntimeAttributes>
-                    </imageView>
-                    <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zC0-bq-h3j">
-                        <rect key="frame" x="60" y="14" width="133" height="22"/>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="22" id="Bh9-Lf-Pob"/>
-                        </constraints>
-                        <fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
-                        <color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
-                        <nil key="highlightedColor"/>
-                    </label>
-                    <button opaque="NO" tag="1001" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YtC-Te-aTQ">
-                        <rect key="frame" x="225" y="5" width="40" height="40"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="40" id="Yeq-Qy-Faq"/>
-                            <constraint firstAttribute="height" constant="40" id="ZOW-wh-g8A"/>
-                        </constraints>
-                        <state key="normal" image="classMember_micOn"/>
-                        <connections>
-                            <action selector="tapEvent:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="VTN-R5-RZW"/>
-                        </connections>
-                    </button>
-                    <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="handup_image" translatesAutoresizingMaskIntoConstraints="NO" id="tEL-P5-Wsu">
-                        <rect key="frame" x="198" y="14" width="22" height="22"/>
-                        <constraints>
-                            <constraint firstAttribute="width" constant="22" id="T1V-18-IdU"/>
-                            <constraint firstAttribute="height" constant="22" id="oxR-LF-Iq5"/>
-                        </constraints>
-                    </imageView>
-                    <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="pWw-PT-bgM">
-                        <rect key="frame" x="60" y="49" width="240" height="1"/>
-                        <color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.94901960784313721" alpha="1" colorSpace="calibratedRGB"/>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="1" id="CmN-Ud-b2a"/>
+                            <constraint firstItem="YtC-Te-aTQ" firstAttribute="leading" secondItem="tEL-P5-Wsu" secondAttribute="trailing" constant="5" id="37E-PU-sFe"/>
+                            <constraint firstItem="zC0-bq-h3j" firstAttribute="leading" secondItem="ojL-FB-WJJ" secondAttribute="trailing" constant="10" id="CeK-6f-6mp"/>
+                            <constraint firstItem="zC0-bq-h3j" firstAttribute="centerY" secondItem="z3z-sY-iZq" secondAttribute="centerY" id="HdS-bM-IUi"/>
+                            <constraint firstItem="tEL-P5-Wsu" firstAttribute="leading" secondItem="zC0-bq-h3j" secondAttribute="trailing" constant="5" id="Hku-se-GEg"/>
+                            <constraint firstAttribute="trailing" secondItem="tlf-d9-VlB" secondAttribute="trailing" constant="20" id="KJx-lk-Xx9"/>
+                            <constraint firstItem="YtC-Te-aTQ" firstAttribute="centerY" secondItem="tEL-P5-Wsu" secondAttribute="centerY" id="N8S-Hm-rik"/>
+                            <constraint firstItem="tlf-d9-VlB" firstAttribute="centerY" secondItem="tEL-P5-Wsu" secondAttribute="centerY" id="Nn7-lW-6QT"/>
+                            <constraint firstItem="tlf-d9-VlB" firstAttribute="leading" secondItem="YtC-Te-aTQ" secondAttribute="trailing" constant="5" id="U25-ou-xD0"/>
+                            <constraint firstAttribute="trailing" secondItem="pWw-PT-bgM" secondAttribute="trailing" constant="10" id="UCN-jF-iTa"/>
+                            <constraint firstItem="ojL-FB-WJJ" firstAttribute="leading" secondItem="z3z-sY-iZq" secondAttribute="leading" constant="10" id="jtk-V4-mwC"/>
+                            <constraint firstItem="ojL-FB-WJJ" firstAttribute="centerY" secondItem="z3z-sY-iZq" secondAttribute="centerY" id="lUT-rS-Tct"/>
+                            <constraint firstAttribute="bottom" secondItem="pWw-PT-bgM" secondAttribute="bottom" id="o7x-Vq-YMU"/>
+                            <constraint firstItem="pWw-PT-bgM" firstAttribute="leading" secondItem="zC0-bq-h3j" secondAttribute="leading" id="xYn-PK-99E"/>
+                            <constraint firstItem="tlf-d9-VlB" firstAttribute="centerY" secondItem="z3z-sY-iZq" secondAttribute="centerY" id="yHf-9G-Wl8"/>
                         </constraints>
                     </view>
-                    <button opaque="NO" tag="1002" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tlf-d9-VlB">
-                        <rect key="frame" x="270" y="5" width="40" height="40"/>
-                        <constraints>
-                            <constraint firstAttribute="height" constant="40" id="6AD-KS-9TO"/>
-                            <constraint firstAttribute="width" constant="40" id="fpP-5I-KRC"/>
-                        </constraints>
-                        <state key="normal" image="classMember_cameroOn"/>
-                        <connections>
-                            <action selector="tapEvent:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="TUB-C6-lnj"/>
-                        </connections>
-                    </button>
                 </subviews>
                 <constraints>
-                    <constraint firstAttribute="bottom" secondItem="pWw-PT-bgM" secondAttribute="bottom" id="3Vz-1H-TPC"/>
-                    <constraint firstItem="YtC-Te-aTQ" firstAttribute="centerY" secondItem="ojL-FB-WJJ" secondAttribute="centerY" id="Nd9-kn-MH3"/>
-                    <constraint firstItem="tlf-d9-VlB" firstAttribute="leading" secondItem="YtC-Te-aTQ" secondAttribute="trailing" constant="5" id="O94-Zl-OeQ"/>
-                    <constraint firstItem="YtC-Te-aTQ" firstAttribute="leading" secondItem="tEL-P5-Wsu" secondAttribute="trailing" constant="5" id="OhC-cl-PYk"/>
-                    <constraint firstItem="tEL-P5-Wsu" firstAttribute="leading" secondItem="zC0-bq-h3j" secondAttribute="trailing" constant="5" id="ULB-IV-NLg"/>
-                    <constraint firstItem="zC0-bq-h3j" firstAttribute="leading" secondItem="ojL-FB-WJJ" secondAttribute="trailing" constant="10" id="V1y-Da-C6z"/>
-                    <constraint firstAttribute="trailing" secondItem="tlf-d9-VlB" secondAttribute="trailing" constant="10" id="Xgd-1f-upn"/>
-                    <constraint firstItem="zC0-bq-h3j" firstAttribute="centerY" secondItem="ojL-FB-WJJ" secondAttribute="centerY" id="aWe-rI-PF7"/>
-                    <constraint firstItem="tlf-d9-VlB" firstAttribute="centerY" secondItem="YtC-Te-aTQ" secondAttribute="centerY" id="gkh-rq-b96"/>
-                    <constraint firstItem="ojL-FB-WJJ" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="jI5-aZ-ojp"/>
-                    <constraint firstItem="ojL-FB-WJJ" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="10" id="umk-U5-wiC"/>
-                    <constraint firstItem="pWw-PT-bgM" firstAttribute="leading" secondItem="zC0-bq-h3j" secondAttribute="leading" id="x0n-yJ-j6C"/>
-                    <constraint firstItem="tEL-P5-Wsu" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="xD8-S5-7a4"/>
-                    <constraint firstAttribute="trailing" secondItem="pWw-PT-bgM" secondAttribute="trailing" constant="20" id="yT0-5Q-7e9"/>
+                    <constraint firstAttribute="bottom" secondItem="z3z-sY-iZq" secondAttribute="bottom" id="FMD-Mh-DR4"/>
+                    <constraint firstItem="z3z-sY-iZq" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="TbQ-aJ-v56"/>
+                    <constraint firstAttribute="trailing" secondItem="z3z-sY-iZq" secondAttribute="trailing" id="bIY-Ba-Utv"/>
+                    <constraint firstItem="z3z-sY-iZq" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="mnz-oE-Ufa"/>
                 </constraints>
             </tableViewCellContentView>
             <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>

+ 6 - 6
KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/View/VideoList/ClassMemberEmptyView.xib

@@ -10,14 +10,14 @@
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
         <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
         <view contentMode="scaleToFill" id="iN0-l3-epB" customClass="ClassMemberEmptyView">
-            <rect key="frame" x="0.0" y="0.0" width="328" height="370"/>
+            <rect key="frame" x="0.0" y="0.0" width="210" height="239"/>
             <autoresizingMask key="autoresizingMask"/>
             <subviews>
                 <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="classEmpty_student" translatesAutoresizingMaskIntoConstraints="NO" id="alY-Ba-WxW">
-                    <rect key="frame" x="138" y="150" width="52" height="44"/>
+                    <rect key="frame" x="69" y="84.666666666666671" width="52" height="44.000000000000014"/>
                 </imageView>
                 <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="暂无学员" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ABw-6M-8eX">
-                    <rect key="frame" x="135.33333333333334" y="200" width="57.333333333333343" height="20"/>
+                    <rect key="frame" x="66.333333333333329" y="134.66666666666666" width="57.333333333333329" height="20"/>
                     <constraints>
                         <constraint firstAttribute="height" constant="20" id="6aP-0Q-t42"/>
                     </constraints>
@@ -28,15 +28,15 @@
             </subviews>
             <color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
             <constraints>
-                <constraint firstItem="ABw-6M-8eX" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="9e1-uc-Lsd"/>
+                <constraint firstItem="ABw-6M-8eX" firstAttribute="centerX" secondItem="alY-Ba-WxW" secondAttribute="centerX" id="DF7-zx-t6b"/>
                 <constraint firstItem="alY-Ba-WxW" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" constant="-13" id="Ody-Vw-eXS"/>
                 <constraint firstItem="ABw-6M-8eX" firstAttribute="top" secondItem="alY-Ba-WxW" secondAttribute="bottom" constant="6" id="gUO-vn-HDd"/>
-                <constraint firstItem="alY-Ba-WxW" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" id="qTc-tm-0pa"/>
+                <constraint firstItem="alY-Ba-WxW" firstAttribute="centerX" secondItem="iN0-l3-epB" secondAttribute="centerX" constant="-10" id="qTc-tm-0pa"/>
             </constraints>
             <nil key="simulatedTopBarMetrics"/>
             <nil key="simulatedBottomBarMetrics"/>
             <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
-            <point key="canvasLocation" x="151.14503816793894" y="-180.98591549295776"/>
+            <point key="canvasLocation" x="241.22137404580153" y="-134.85915492957747"/>
         </view>
     </objects>
     <resources>

+ 2 - 5
KulexiuForTeacher/KulexiuForTeacher/Module/TXClassRoom/View/VideoList/TXClassroomVideoListView.m

@@ -46,9 +46,7 @@
 
 - (void)addEmptyView {
     [self.videoListTableView addSubview:self.emtpyView];
-    [self.emtpyView mas_makeConstraints:^(MASConstraintMaker *make) {
-        make.left.right.top.bottom.mas_equalTo(self.videoListTableView);
-    }];
+    self.emtpyView.frame = self.videoListTableView.frame;
     self.emtpyView.alpha = 0.0f;
 }
 
@@ -117,8 +115,7 @@
 - (void)changeEmptyDisplay {
     NSInteger count = self.videoDataSource.count;
     [UIView animateWithDuration:0.1 animations:^{
-//        [self.emtpyView setAlpha:count ? 0.0f :1.0f];
-        [self.emtpyView setAlpha:1];
+        [self.emtpyView setAlpha:count ? 0.0f :1.0f];
     }] ;
 }