iOS 6 - 如何获得"发布刷新"动画?喜欢在邮件?

Jac*_*ale 4 iphone uiview ipad ios6 uirefreshcontrol

在邮件应用程序,我们现在可以drag the view downrelease to refresh像在如下图所示.

这是我可以从SDK获得的标准内容吗?

谢谢

在此输入图像描述

Ali*_*are 5

使用新的iOS6 UIRefreshControl类来做到这一点.

yourUITableViewController.refreshControl = [[[UIRefreshControl alloc] init] autorelease];
[yourUITableViewController.refreshControl addTarget:yourTableView action:@selector(reloadData) forControlEvent:UIControlEventValueChanged];
Run Code Online (Sandbox Code Playgroud)