Steven 6 tháng trước cách đây
mục cha
commit
baeafc7100

+ 2 - 0
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeInformationCell.m

@@ -9,6 +9,8 @@
 
 @interface HomeInformationCell ()
 
+@property (weak, nonatomic) IBOutlet NSLayoutConstraint *topSpace;
+
 @property (weak, nonatomic) IBOutlet UILabel *messageTitle;
 
 @property (weak, nonatomic) IBOutlet UILabel *timeLabel;

+ 1 - 0
KulexiuForStudent/KulexiuForStudent/Module/Home/View/HomeInformationCell.xib

@@ -78,6 +78,7 @@
                 <outlet property="messageImage" destination="Z8V-5d-ftb" id="jJy-y1-rPF"/>
                 <outlet property="messageTitle" destination="vYy-zu-7s3" id="A78-0z-65X"/>
                 <outlet property="timeLabel" destination="7QX-lI-BO2" id="L9Q-3J-Uzq"/>
+                <outlet property="topSpace" destination="1yE-8L-1mk" id="YG2-B9-LMI"/>
             </connections>
             <point key="canvasLocation" x="220.28985507246378" y="95.089285714285708"/>
         </tableViewCell>

+ 4 - 7
KulexiuForStudent/KulexiuForStudent/Module/Login/Controller/InstrumentChooseViewController.m

@@ -181,24 +181,21 @@
 
 - (void)countMessageWithModel:(InstrumentMessageModel *)model indexPath:(NSIndexPath *)indexPath {
     if (model.isChoose) {
-        if (self.chooseModel) {
-            self.chooseModel.isChoose = NO;
-        }
+        self.chooseModel = model;
+        self.chooseIndexPath = indexPath;
     }
     else {
-        model.isChoose = NO;
         self.chooseModel = nil;
         self.chooseIndexPath = nil;
     }
+    
     if (self.chooseIndexPath) {
         [self.collectionView reloadItemsAtIndexPaths:@[indexPath,self.chooseIndexPath]];
-
     }
     else {
         [self.collectionView reloadItemsAtIndexPaths:@[indexPath]];
     }
-    self.chooseModel = model;
-    self.chooseIndexPath = indexPath;
+
 }
 
 - (UICollectionReusableView *)collectionView:(UICollectionView *)collectionView viewForSupplementaryElementOfKind:(NSString *)kind atIndexPath:(NSIndexPath *)indexPath {