UIRefreshControl:UIControl (UIControl:UIView)
使用一:
UITableView之Cell刷新,UIRefreshControl为其一属性.
self.customTableView.refreshControl = [[UIRefreshControl alloc] init];
[self.customTableView.refreshControl addTarget:self action:@selector(doRefresh:) forControlEvents:UIControlEventValueChanged];
}
- (void)doRefresh:(UIRefreshControl *)sender {
NSLog(@"refreshing");
[self.customTableView.refreshControl performSelector:@selector(endRefreshing) withObject:nil afterDelay:1.0];
}