在邮件应用程序中,我们现在可以drag the view down
and release to refresh
,如下图所示。
这是我可以从 SDK 获得的标准东西吗?
Thanks
使用新的iOS6UIRefreshControl https://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIRefreshControl_class/Reference/Reference.html类来做到这一点。
yourUITableViewController.refreshControl = [[[UIRefreshControl alloc] init] autorelease];
[yourUITableViewController.refreshControl addTarget:yourTableView action:@selector(reloadData) forControlEvent:UIControlEventValueChanged];
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)