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

Add a new UITableViewCell for each new push

I created my first push app and got an problem by passing push data to my viewController. I want to create and display a new Cell in my tableviewController for each new Push Notification. I have no idea how I can do this..
0
votes
2 answers

How to implement ckrefreshcontrol to support ios5?

I've seen in this question that CKRefreshControl can be used as a substitute for UIRefreshControl for apps that support both iOS5 and iOS6. I've found the code on Github, but I don't know how to implement it. John said to just use the same code. …
Rick_CBR929RR
  • 197
  • 2
  • 15
0
votes
2 answers

Could not instantiate class named UIRefreshControl Xcode

I am building a RSS feed on a tableview. When i run the app, on my iPhone could run smoothly while in ipad, it crashed and showed "Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: 'Could not instantiate class…
Clarence
  • 1,951
  • 2
  • 34
  • 49
-1
votes
1 answer

React Native RefreshControl iOS Takes up space after refresh completes

I am trying to use the RefreshControl component with a FlatList and I noticed three issues, but I am pretty sure they are related. When I pull down to refresh, it shows the icon. After, the refresh flag is set to false, the icon hides but the space…
Jwags
  • 474
  • 6
  • 15
-1
votes
1 answer

UIRefreshControl in wrong position when used in TabBarController item

I am developing an iOS application which has a "main" TabBarController with 7 view controllers. Every view controller is a NavigationViewController with a TableViewController as its root. Every TableViewController has a UIRefreshControl set up using…
Roberto V
  • 1
  • 1
-1
votes
4 answers

Locking scrollview while refreshing?

I'm working on an application and want my scrollview to lock in place while data is loading. Currently, when the user refreshes the scrollview immediately snaps back into place. How can I adjust my code so that the scrollview locks into place until…
Skii_club
  • 45
  • 4
-1
votes
1 answer

Refresh UITableView using UIRefreshControl

I insert UIRefreshControl in my tblView, when I pulldown my table view it's call method cellForRowAtIndex but my array list has no element then why it has been called? code for UIRefreshControl in viewDidLoad Method : refreshControl =…
V-Dev
  • 488
  • 1
  • 4
  • 16
-1
votes
1 answer

Refresh Control set to TableViewController works even without adding it as Sub View

Here in the following code, a TableViewController is created and it's tableView and refreshControl properties are set. However even without adding the TableViewController as sub view to the View Controller view, the refresh control starts working.…
jay
  • 3,517
  • 5
  • 26
  • 44
-1
votes
1 answer

End the refreshing of a table view after a period of time

I have a tableview that displays RSS feeds and I have successfully managed to integrate a pull to refresh control to gather the latest feeds. However if there is no internet connection the tableview just refreshes infinitely and the…
Jay Chauhan
  • 99
  • 1
  • 9
-1
votes
1 answer

UIRefreshControl addTarget action causing "unrecognized selector" error

I have a UITableViewController in which I am implementing a UIRefreshControl for pull to refresh. Everything is working fine, the table is getting populated from my web service. But when I pull down to refresh I get the error: [MyViewController…
Brett Gregson
  • 5,867
  • 3
  • 42
  • 60
-2
votes
3 answers

UIRefreshControl for uitableview is not working in only iphone 6

Actually this working is fine in all devices except IPhone-6. Please help me for this problem. my code is var refreshControl = UIRefreshControl() self.refreshControl.addTarget(self, action: #selector(self.refresh(_:)), for: .valueChanged) …
-2
votes
1 answer

UIRefreshControl: unrecognized selector sent to instance - absoluteURL

Before i start, i have went through each and every question relating to this issue. didnt help. I want to refresh the json contents of my tableView which are fetched from a website. The URL for each category comes from a different file that has All…
Swapna Lekshmanan
  • 514
  • 10
  • 30
-2
votes
1 answer

UIViewController as Apple PodCast application

I want to make an application with an UI looks like apple podcast application. There are 2 parts on this UIViewController: fixed part with buttons and Image tableview with refreshcontrol This is this last point my problem: refreshcontrol. I found…
ppmax
  • 23
  • 3
1 2 3
32
33