Open veila opened 6 years ago
same problem here after upgrade to iOS 11.1
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!
But After applying estimateRowHeight = 0, I am still facing the issue. Refresh selector method is being called in the loop.
How many row in your table? They visible all? and which index row you call the refresh selector?
I have total 50 records. And I call refresh selector in scrollDidSelect delegate method of scroll view.
thanks @veila tableView.setEstimateHeightRow = 0 works. Now, CCBottomPullToRefresh does not loop call automatically
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]; }