Browse Source

处理专辑刷新布局刷新时机

Steven 2 months ago
parent
commit
0b88d4ee67

+ 4 - 1
KulexiuForTeacher/KulexiuForTeacher/Module/Home/Controller/HomeViewController.m

@@ -537,7 +537,10 @@
     [self.albumView mas_updateConstraints:^(MASConstraintMaker *make) {
         make.height.mas_equalTo(self.albumViewHeight);
     }];
-    [self.albumCollectionView reloadData];
+    
+    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.3f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+        [self.albumCollectionView reloadData];
+    });
 }
 
 - (void)configUI {