Created
December 4, 2013 04:22
-
-
Save blacklee/7782293 to your computer and use it in GitHub Desktop.
UITableView load content while scrolling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { | |
// somecode | |
[self performSelectorInBackground:@selector(loadMoreData:) withObject:nil]; | |
} | |
- (void) loadMoreData:(id) s { | |
// some code to pull data from remote | |
dispatch_async(dispatch_get_main_queue(), ^{ | |
[self.tableView reloadData]; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment