IPhone Pull Down Update as Tweetie

I am trying to find an example of placing an element above a table view outside a normal scrollable region. How should I do it? An example is what Tweetie 2 for iPhone does to update tweets.

Sample code will be very helpful.

+43
iphone uitableview pull-to-refresh
Oct 28 '09 at 1:46
source share
5 answers

I found the answer to my question, for everyone who is interested.

EGOTableViewPullRefresh

I tried this solution and it works great! This is almost identical to the Tweetie Pull Down update.

+52
Oct 28 '09 at 3:02
source share

Here's an alternative to EGOTableViewPullRefresh:

http://blog.leahculver.com/2010/12/iphone-pull-to-refresh.html

The source is available on github here:

https://github.com/leah/PullToRefresh

This is a little easier to use from a developers point of view, although in the end I went with EGOTableViewPullRefresh, since I preferred what it looked like.

+20
Dec 02 '10 at 12:10
source share

Starting with iOS 6.0, there is a standard control called UIRefreshControl in sdk. apple doc here

+4
Feb 27 '13 at 9:15
source share

Here's what you can do with iOS 6 and later:

- (void)viewDidLoad { // other initialization self.refreshControl = [[UIRefreshControl alloc] init]; [self.refreshControl addTarget:self action:@selector(myRefresh) forControlEvents:UIControlEventValueChanged]; } 

Your update method:

 - (void)myRefresh { // get refreshed data for table view } 

You finish the update in reloadData:

 - (void)reloadData { [self.tableView reloadData]; // End the refreshing if (self.refreshControl) { [self.refreshControl endRefreshing]; } } 

Then you are all set!

+2
Feb 10 '15 at 2:24
source share

You are looking for a UIRefreshControl that is available for every UITableViewController - https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIRefreshControl_class/Reference/Reference.html

0
Nov 09 '13 at 21:35
source share



All Articles