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
- (id)init { | |
self = [super initWithStyle:UITableViewStyleGrouped]; | |
if (self) { | |
// add the handler to the UITableView | |
[[self tableView] addPullToRefreshWithActionHandler:^{ | |
// do something, in this case add a new item to our data source | |
[self addNewItem:nil]; | |
// tell pull-to-refresh to stop animating | |
[[[self tableView] pullToRefreshView] stopAnimating]; | |
}]; |
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
- (id)init { | |
self = [super initWithStyle:UITableViewStyleGrouped]; | |
return self; | |
} |
NewerOlder