Commit 19e2f4b9493c0a66b074a8b1e44ae163ea3a283d
1 parent
255f4a7d
no message
Showing
1 changed file
with
2 additions
and
5 deletions
CNLiveCollectionModule/Classes/Controller/CNLiveCollectionController.m
| ... | ... | @@ -172,11 +172,8 @@ static const CGFloat timeValue = 1.5; |
| 172 | 172 | [strongSelf.data removeObject:cell.model]; |
| 173 | 173 | [strongSelf.tableView reloadData]; |
| 174 | 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 | 177 | strongSelf.tableView.mj_footer.hidden = strongSelf.data.count == 0; |
| 181 | 178 | } |
| 182 | 179 | }]; | ... | ... |