Commit 19e2f4b9493c0a66b074a8b1e44ae163ea3a283d

Authored by zhangxiaowen
1 parent 255f4a7d

no message

CNLiveCollectionModule/Classes/Controller/CNLiveCollectionController.m
@@ -172,11 +172,8 @@ static const CGFloat timeValue = 1.5; @@ -172,11 +172,8 @@ static const CGFloat timeValue = 1.5;
172 [strongSelf.data removeObject:cell.model]; 172 [strongSelf.data removeObject:cell.model];
173 [strongSelf.tableView reloadData]; 173 [strongSelf.tableView reloadData];
174 [QMUITips showSucceed:@"取消收藏成功" inView:strongSelf.view hideAfterDelay:timeValue]; 174 [QMUITips showSucceed:@"取消收藏成功" inView:strongSelf.view hideAfterDelay:timeValue];
175 - if (strongSelf.data.count == 0) {  
176 - [strongSelf showEmptyViewWithImage:[UIImage imageNamed:@"zhuangtai_kong"] text:@"您现在没有相关内容哦" detailText:@"" buttonTitle:@"" buttonAction:nil];  
177 - [strongSelf setCNNoDataEmptyView];  
178 - strongSelf.tableView.tableFooterView = nil;  
179 - } 175 + [strongSelf.tableView showEmptyViewWithType:CNLiveCustomTipsTypeNoData noData:self.data.count == 0 block:nil];
  176 + strongSelf.tableView.emptyView.top = 0;
180 strongSelf.tableView.mj_footer.hidden = strongSelf.data.count == 0; 177 strongSelf.tableView.mj_footer.hidden = strongSelf.data.count == 0;
181 } 178 }
182 }]; 179 }];