Commit 0495116b66eac8b1d276368978182e950f30bf92
1 parent
ee1d306b
no message
Showing
1 changed file
with
2 additions
and
2 deletions
CNLiveCollectionModule/Classes/Controller/CNLiveCollectionController.m
| ... | ... | @@ -37,9 +37,7 @@ static const CGFloat timeValue = 1.5; |
| 37 | 37 | |
| 38 | 38 | #pragma mark - 数据 |
| 39 | 39 | - (void)loadData{ |
| 40 | -// [QMUITips showLoadingInView:self.view]; | |
| 41 | 40 | __weak typeof(self) weakSelf = self; |
| 42 | - | |
| 43 | 41 | [CNLiveCollectionRequest getCollectionList:[NSString stringWithFormat:@"%ld",_pageNo] pageSize:[NSString stringWithFormat:@"%ld",_pageSize] block:^(BOOL isSuccess, NSArray * _Nonnull array, NSError * _Nonnull error) { |
| 44 | 42 | __strong typeof(weakSelf) strongSelf = weakSelf; |
| 45 | 43 | if(!strongSelf) return ; |
| ... | ... | @@ -96,6 +94,7 @@ static const CGFloat timeValue = 1.5; |
| 96 | 94 | |
| 97 | 95 | - (void)loadMoreData{ |
| 98 | 96 | if(!_isRefreshing){ |
| 97 | + _isRefreshing = YES; | |
| 99 | 98 | [self loadData]; |
| 100 | 99 | } |
| 101 | 100 | } |
| ... | ... | @@ -221,6 +220,7 @@ static const CGFloat timeValue = 1.5; |
| 221 | 220 | |
| 222 | 221 | }]; |
| 223 | 222 | footer.backgroundColor = [UIColor colorWithRed:242/255.0 green:242/255.0 blue:242/255.0 alpha:1.0]; |
| 223 | + footer.hidden = YES; | |
| 224 | 224 | _tableView.mj_footer = footer; |
| 225 | 225 | } |
| 226 | 226 | return _tableView; | ... | ... |