房间游戏
This commit is contained in:
@@ -90,7 +90,10 @@
|
||||
_itemList = itemList;
|
||||
self.collectionView.scrollEnabled = _itemList.count > 2;
|
||||
self.collectionView.hidden = _itemList.count == 0;
|
||||
[self.collectionView reloadData];
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
[self.collectionView reloadData];
|
||||
});
|
||||
|
||||
if (_itemList.count == 0){
|
||||
[self.collectionView mas_remakeConstraints:^(MASConstraintMaker *make) {
|
||||
make.leading.mas_equalTo(0);
|
||||
|
Reference in New Issue
Block a user