Commit 64362e47613265103d93358885dfa47608cb12e1
1 parent
b0fe2fd3
修改不能加载更多问题
Showing
2 changed files
with
2 additions
and
2 deletions
CNLiveWitnessVideoModule/Classes/Controller/CNBWitnessListController.m
| @@ -222,7 +222,7 @@ NSString * const kIdentifier = @"CNBWitnessListCell"; | @@ -222,7 +222,7 @@ NSString * const kIdentifier = @"CNBWitnessListCell"; | ||
| 222 | [strongSelf.tableView.mj_footer endRefreshingWithNoMoreData]; | 222 | [strongSelf.tableView.mj_footer endRefreshingWithNoMoreData]; |
| 223 | } | 223 | } |
| 224 | strongSelf.isRefreshMore = NO; | 224 | strongSelf.isRefreshMore = NO; |
| 225 | - [strongSelf.dataSource arrayByAddingObject:dataArray]; | 225 | + [strongSelf.dataSource addObjectsFromArray:dataArray]; |
| 226 | strongSelf.tableView.mj_footer.hidden = strongSelf.dataSource.count == 0; | 226 | strongSelf.tableView.mj_footer.hidden = strongSelf.dataSource.count == 0; |
| 227 | if (strongSelf.currentPlayIndex > strongSelf.dataSource.count) { | 227 | if (strongSelf.currentPlayIndex > strongSelf.dataSource.count) { |
| 228 | strongSelf.currentPlayIndex = strongSelf.dataSource.count; | 228 | strongSelf.currentPlayIndex = strongSelf.dataSource.count; |
Example/CNLiveWitnessVideoModule/CNLIVEViewController.m
| @@ -74,7 +74,7 @@ | @@ -74,7 +74,7 @@ | ||
| 74 | // CNBWitnessListController *vc = [[CNBWitnessListController alloc]initControllerWithData:self.data currentIndex:indexPath.row pageNum:1 type:@"0"]; | 74 | // CNBWitnessListController *vc = [[CNBWitnessListController alloc]initControllerWithData:self.data currentIndex:indexPath.row pageNum:1 type:@"0"]; |
| 75 | // [self.navigationController pushViewController:vc animated:YES]; | 75 | // [self.navigationController pushViewController:vc animated:YES]; |
| 76 | id <CNBWitnessVideoPlayProtocol>service = [[BeeHive shareInstance]createService:@protocol(CNBWitnessVideoPlayProtocol)]; | 76 | id <CNBWitnessVideoPlayProtocol>service = [[BeeHive shareInstance]createService:@protocol(CNBWitnessVideoPlayProtocol)]; |
| 77 | - [service pushToWitnessVideoController:self.data currentIndex:indexPath.row pageNum:1 type:@"1"]; | 77 | + [service pushToWitnessVideoController:self.data currentIndex:indexPath.row pageNum:1 type:@"0"]; |
| 78 | } | 78 | } |
| 79 | - (void)getWitnessListDataTosid:(NSString *)toSid page:(NSInteger)page pageSize:(NSInteger)pageSize type:(NSString *)type { | 79 | - (void)getWitnessListDataTosid:(NSString *)toSid page:(NSInteger)page pageSize:(NSInteger)pageSize type:(NSString *)type { |
| 80 | NSString *url = @""; | 80 | NSString *url = @""; |