Questions tagged [uirefreshcontrol]

A UIRefreshControl object provides a standard control that can be used to initiate the refreshing of a table view’s contents. You link a refresh control to a table through an associated table view controller object. The table view controller handles the work of adding the control to the table’s visual appearance and managing the display of that control in response to appropriate user gestures.

UIRefreshControl is a control available in iOS 6.0 () and later.

A UIRefreshControl object provides a standard control that can be used to initiate the refreshing of a table view’s contents. You link a refresh control to a table through an associated table view controller object. The table view controller handles the work of adding the control to the table’s visual appearance and managing the display of that control in response to appropriate user gestures.

In addition to assigning a refresh control to a table view controller’s refreshControl property, you must configure the target and action of the control itself. The control does not initiate the refresh operation directly. Instead, it sends the UIControlEventValueChanged event when a refresh operation should occur. You must assign an action method to this event and use it to perform whatever actions are needed.

The UITableViewController () object that owns a refresh control is also responsible for setting that control’s frame rectangle. Thus, you do not need to manage the size or position of a refresh control directly in your view hierarchy.

NOTE: Because the refresh control is specifically designed for use in a table view that's managed by a table view controller, using it in a different context can result in undefined behavior.

References:

493 questions
0
votes
1 answer

XML not getting parsed into tableview

I am trying to Parse a XML data into table view but the data is not getting reflected .I am implementing a refresh button which loads the data from XML once clicked. Can somebody please tell me what i am doing wrong ? Below is my code // // …
Vishal Thakur
  • 141
  • 4
  • 16
0
votes
1 answer

Refreshing tableView with refreshcontrol by code Error

I am trying to use refreshControl doing everything by Code the problem appears when I pull the tableView and I call the server. It tells me this error : Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM…
croigsalvador
  • 1,993
  • 2
  • 24
  • 47
0
votes
1 answer

Refresh using UIRefreshControl depending on current URL

I have recently dropped iOS 5 support for my app and went with using UIRefreshControl. I't all set up and working perfectly. My goal from this thread is to have it refresh if its a current url in my website, or if it's on another site like youtube,…
ChrisOSX
  • 724
  • 2
  • 11
  • 28
0
votes
0 answers

Add a custom image to UIRefreshControl

I have implemented a UIRefreshControl to enable refresh on a UItableView. It is working fine. refreshControl = [[UIRefreshControl alloc] init]; refreshview.backgroundColor=[UIColor clearColor]; stopgif=[NSTimer scheduledTimerWithTimeInterval:2.0f…
Minkle Garg
  • 1,397
  • 3
  • 13
  • 27
0
votes
0 answers

How can I make a simple pull to refresh control without any libraries?

I'm using Core Animation to make a moon-orbiting-earth animation, and I would like to use this as an activity indicator of sorts in a pull-to-refresh controller on a UITableView. The problem is, I cannot make a custom activity indicator with Core…
user
  • 3,388
  • 7
  • 33
  • 67
0
votes
1 answer

Reload Table View Data, With Existing Data Visible

I'm using the standard method of fetching and parsing JSON through AFNetworking, the data is then used to populate a table view. NSURL *url = [NSURL URLWithString:serverURL]; NSURLRequest *request = [NSURLRequest…
Alex Saidani
  • 1,277
  • 2
  • 16
  • 31
0
votes
1 answer

Using UIRefreshControl

Currently, I have an application that is using UIRefreshControl. I am having some issues though... Heres my code: - (void)viewDidLoad { [super viewDidLoad]; self.searchDisplayController.delegate = self; UIRefreshControl *refreshControl…
jsetting32
  • 1,632
  • 2
  • 20
  • 45
0
votes
1 answer

Refresh control with UICollectionView reloadData issue

I continue refining the implementation of my UICollectionViewController with Parse and this time I'm dealing with an issue that it might be related to cache or maybe the reloadData method itself. Maybe you can help me identify the source of this…
0
votes
1 answer

NSURLConnection sendAsynchronousRequest does not hit completion handler on some refresh requests

I have this code block: +(void)requestPath:(NSString *)path onCompletion:(RequestCompletionHandler)complete { // Background Queue NSOperationQueue *backgroundQueue = [[NSOperationQueue alloc] init]; // URL Request NSURLRequest…
0
votes
1 answer

UIRefreshControl Auto Start

Is it possible to start UIRefreshControl automatically upon launch of an app? I tried calling self.refreshControl beginRefreshing]; but it's not working. Here's some code in my viewDidLoad: UIRefreshControl *refreshControl = [[UIRefreshControl…
jaytrixz
  • 4,059
  • 7
  • 38
  • 57
0
votes
1 answer

Search bar behavior similar to native Contacts app, but with a refresh control

I've followed the steps in the accepted answer of this question: Sticky search bar and section header behavior similar to native Contacts app All works fine, but I want to add a UIRefreshControl to the table view. It also works fine, but after…
neutrino
  • 2,297
  • 4
  • 20
  • 28
0
votes
1 answer

UIRefreshControl is not worling in landscape mode

My working Code : -(void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate { if (self.collectionView.contentOffset.y < -80 && ![self.pullDownRefreshControl isRefreshing]) { …
0
votes
1 answer

Using refreshControl from UIViewController

I currently have a UIViewController that has two UIViews, hiding and un-hiding them via segmentedControl. I want to be able to implement the pull-to-refresh feature, which is easy if I had a UITableViewController. But I don't have that right now, so…
Angela
  • 11
  • 1
  • 3
0
votes
2 answers

UIRefreshControl pull-UP to refresh?

I hooked up a NSFetchedResultController with a UITableViewController. I would love to implement UIRefreshControl at the BOTTOM of my UITableView. This means that my users will be scrolling down to the bottom of the table. Then the user will scroll…
xjq233p_1
  • 7,810
  • 11
  • 61
  • 107
0
votes
0 answers

UIRefreshControl - Terminating app due to uncaught exception

I implemented UIRefreshControl on a Table View inside a UITableViewController. Today my friend (first tester) was playing with the app and he was able to make crash by pulling to refresh and while it's refreshing, pulling on it again very quickly a…
Drowned
  • 373
  • 2
  • 12
1 2 3
32
33