CCBottomRefreshControl icon indicating copy to clipboard operation
CCBottomRefreshControl copied to clipboard

Method target RefreshControl loop call

Open veila opened this issue 7 years ago • 6 comments

I have a problem when using bottomRefreshControl. When I load more data. In method callback from api. I endrefreshing the UIRefreshControl. But it still call the selector. This is my method.

-(void)loadFunItems{ [[NetworkManager manager] getListFunItemsByTagId:self.tagModel.tagId andPagenumber:[NSString stringWithFormat:@"%d",pageNumber] success:^(NSMutableArray *results) { [self.refreshControl endRefreshing]; [self.loadMoreControl endRefreshing]; if(results.count > 0){ [listFunItems addObjectsFromArray:results]; [self.tableView reloadData]; } } failure:^(NSString *error) { [self.refreshControl endRefreshing]; [self.loadMoreControl endRefreshing]; }]; }

-(void)loadMore{ pageNumber++; [self loadFunItems]; }

veila avatar Oct 23 '17 08:10 veila

same problem here after upgrade to iOS 11.1

Fonger avatar Nov 04 '17 02:11 Fonger

Hey guys, when we use xcode 9. the table always set estimate height row is auto, so the table always call cellForRow all cell. just turn off it in storyboard or set estimateheightRow = 0. Enjoy!

veila avatar Nov 08 '17 08:11 veila

But After applying estimateRowHeight = 0, I am still facing the issue. Refresh selector method is being called in the loop.

vyasdarshan avatar Nov 14 '17 09:11 vyasdarshan

How many row in your table? They visible all? and which index row you call the refresh selector?

veila avatar Nov 18 '17 06:11 veila

I have total 50 records. And I call refresh selector in scrollDidSelect delegate method of scroll view.

vyasdarshan avatar Jan 17 '18 10:01 vyasdarshan

thanks @veila tableView.setEstimateHeightRow = 0 works. Now, CCBottomPullToRefresh does not loop call automatically

Arpit723 avatar Jul 28 '18 08:07 Arpit723