Skip to content

Method target RefreshControl loop call #38

Description

@veila

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];
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions