房间完成
This commit is contained in:
@@ -210,11 +210,21 @@
|
||||
[weakSelf.collectionView reloadData];
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
showToast(msg);
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
[weakSelf getCoinList];
|
||||
});
|
||||
}];
|
||||
}
|
||||
|
||||
-(void)refreshCoinList{
|
||||
[self getCoinList];
|
||||
-(void)refreshCoinListWith:(NSArray *)coinList{
|
||||
[self getMyWallet];
|
||||
[self.dataArray removeAllObjects];
|
||||
for (NSString*title in coinList) {
|
||||
QXRoomRelationModel *md = [[QXRoomRelationModel alloc] init];
|
||||
md.name = title;
|
||||
[self.dataArray addObject:md];
|
||||
}
|
||||
[self.collectionView reloadData];
|
||||
}
|
||||
-(void)showInView:(UIView *)view{
|
||||
[self getCoinList];
|
||||
|
||||
Reference in New Issue
Block a user