UIRefreshControl *refreshController = [[UIRefreshControl alloc] init];
// 设置加载指示器颜色
refreshController.tintColor = [UIColor brownColor];
// 设置文字颜色
NSDictionary *attributes = @{ NSForegroundColorAttributeName: [UIColor blackColor] };
// 提示文字
refreshController.attributedTitle = [[NSAttributedString alloc] initWithString:@"下拉刷新" attributes:attributes];
[refreshController addTarget:self action:@selector(refresh:) forControlEvents:UIControlEventValueChanged];
self.tableView.refreshControl = refreshController;
- (void)refresh:(UIRefreshControl *)sender {
[sender endRefreshing];
}