-
-
Save mavencode01/7ef6f3dd0f6ecce96e6f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Set up the UIRefreshControl. | |
self.refreshControl = [[UIRefreshControl alloc] init]; | |
[self.refreshControl addTarget:self | |
action:@selector(refreshInvoked:forState:) | |
forControlEvents:UIControlEventValueChanged]; | |
// Create a UITableViewController so we can use a UIRefreshControl. | |
UITableViewController *tvc = [[UITableViewController alloc] initWithStyle:self.tableView.style]; | |
tvc.tableView = self.tableView; | |
tvc.refreshControl = self.refreshControl; | |
[self addChildViewController:tvc]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment