Commit 01bf2caed43d0fdbb8ec9cac9521a47c5c2ebd2b

Authored by zhangxiaowen
1 parent 19e2f4b9

no message

CNLiveCollectionModule/Classes/Controller/CNLiveCollectionController.m
@@ -50,12 +50,13 @@ static const CGFloat timeValue = 1.5; @@ -50,12 +50,13 @@ static const CGFloat timeValue = 1.5;
50 [strongSelf.tableView.mj_footer endRefreshing]; 50 [strongSelf.tableView.mj_footer endRefreshing];
51 51
52 if (error) { 52 if (error) {
53 - [self.data removeAllObjects];  
54 - [self.tableView reloadData];  
55 - [self.tableView showEmptyViewWithType:CNLiveCustomTipsTypeLoadFail noData:self.data.count == 0 block:^{  
56 - [self.tableView.mj_header beginRefreshing]; 53 + [strongSelf.data removeAllObjects];
  54 + [strongSelf.tableView reloadData];
  55 + [strongSelf.tableView showEmptyViewWithType:CNLiveCustomTipsTypeLoadFail noData:strongSelf.data.count == 0 block:^{
  56 + [strongSelf.tableView.mj_header beginRefreshing];
57 }]; 57 }];
58 - self.tableView.emptyView.top = 0; 58 + strongSelf.tableView.emptyView.top = 0;
  59 + strongSelf.tableView.mj_footer.hidden = strongSelf.data.count == 0;
59 return; 60 return;
60 } 61 }
61 62