1.UIRefreshControl必须要在IOS6.0以后才能使用,同时他只能在UITableViewController类中才可以使用
2.使用比较简单
self.refreshControl = [[UIRefreshControl alloc]initWithFrame:CGRectMake(0, 0, self.tableView.frame.size.width, 100)];
[self.refreshControl addTarget:self action:@selector(refresh:) forControlEvents:UIControlEventValueChanged];
[self.tableView.tableHeaderView addSubview:self.refreshControl];
3.下拉之后refreshControl会一直显示,直到调用[self.refreshControl endRefreshing];
按照惯例还是附上demo
http://pan.baidu.com/s/1kTEbUmF
IOS6.0自带下拉刷新控件UIRefreshControl
原文地址:http://blog.csdn.net/nlyellow/article/details/46380725