Jac*_*ale 4 iphone uiview ipad ios6 uirefreshcontrol
在邮件应用程序,我们现在可以drag the view down和release to refresh像在如下图所示.
这是我可以从SDK获得的标准内容吗?
谢谢

使用新的iOS6 UIRefreshControl类来做到这一点.
yourUITableViewController.refreshControl = [[[UIRefreshControl alloc] init] autorelease];
[yourUITableViewController.refreshControl addTarget:yourTableView action:@selector(reloadData) forControlEvent:UIControlEventValueChanged];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1675 次 |
| 最近记录: |