IOS 6 - How can I get the "release to update" animation? how is it in the mail?

In the mail application, we can now drag the view down and release to refresh , as shown in the figure below.

Is this the standard thing I can get from the SDK?

thanks

enter image description here

+4
source share
2 answers

To do this, use the new iOS6 class UIRefreshControl .

 yourUITableViewController.refreshControl = [[[UIRefreshControl alloc] init] autorelease]; [yourUITableViewController.refreshControl addTarget:yourTableView action:@selector(reloadData) forControlEvent:UIControlEventValueChanged]; 
+5
source

If you need to configure update management,

ODRefreshControl

thanks,

Naven Shan

+2
source

Source: https://habr.com/ru/post/1435305/


All Articles