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

UIRefreshControl (pull to do something) on every cell

How do i apply UIRefreshControl(or something similar) on every cell of a UICollectionView. I need to invoke an event when cell is swiped to left side and released(if not released but swiped back to its original position, then take no action).
gndp
  • 231
  • 2
  • 12
0
votes
1 answer

App crashes while reloading and scrolling tableview one direction

I have a UITableView for an Instagram feed. I have implemented UIRefreshControl for pull to refresh functionality. After drag and release the refresh control, and while the spinner is going, I'm able to drag the tableview down without the app…
rebellion
  • 6,628
  • 11
  • 48
  • 79
0
votes
1 answer

UITableView and UICollectionView with one section doesn't show UIRefreshControl when section have 0 rows / items

I've a page that show content in UITableView or in UICollectionView (the user can switch between this two elements with a button). All content are showed in one section. As I wrote in the title, when the section has 0 row (in case of UITableView) or…
Fry
  • 6,235
  • 8
  • 54
  • 93
0
votes
1 answer

Using UIRefreshControl with QuickDialog

How should one use a UIRefreshControl with QuickDialog (https://github.com/escoz/QuickDialog)? The way I interpret the docs, the control has to be used with a UITableViewController, but I don't think QD uses one.
Josh The Geek
  • 1,203
  • 12
  • 24
0
votes
1 answer

How to change color of UIRefreshControl when it is refreshing?

I want to change color of UIRefreshControl when it in "refreshing" state. It works fine on iOS 6, but on iOS 7 it doesn't work.
ChikabuZ
  • 10,031
  • 5
  • 63
  • 86
0
votes
0 answers

Refreshing is work only when i did several refresh

I’m building an application for iPhone on iOS 7. In the application i fetched accelerometer data, extract features and saved the results as “records”.I have a record database that listed on tableview with another tab. The problem is refreshing the…
Anamort
  • 341
  • 4
  • 17
0
votes
2 answers

UIRefreshControl loading icon still loading

i implemented a UIRefreshControl for UICollectionView so that user can pull to refresh the content in UICollectionView. I am testing on the iPad simulator. On the first attempt, I'm able to pull and refresh the content. However, I notice that the…
chrizonline
  • 4,779
  • 17
  • 62
  • 102
0
votes
2 answers

After reloading UITableView data, indexPathForCell returns null

I have a UITableView in a ViewController which contains a custom cell. When the view first loads, the indexPathForCell in the following code returns the indexPath without problems: - (UITableViewCell *)tableView:(UITableView *)tableView…
Leon Liang
  • 41
  • 4
0
votes
1 answer

UIRefreshControl why I can't get a data from from my webApi

- (void)viewDidLoad { [super viewDidLoad]; Name = @"Name"; thumbnail = @"Thumbnail"; titlename = @"TitleName"; stw = @"stw"; shopname = @"shopname"; telno = @"telno"; adress = @"adress"; hour = @"hour"; textview = @"textview"; myObject =…
yy33k
  • 1
0
votes
1 answer

How do I make a UIRefreshControl reappear after hiding it?

I have a UITableViewController and UIRefreshControl set up. The refreshControl works and reloads the tableView. The issue is that I have a UISegmentedControl above my tableView which reloads the tableView with different data, depending on which…
Julius
  • 576
  • 5
  • 12
0
votes
2 answers

iOS 7 UITableView extends beneath UINavigationBar

Project Overview I have a UITableViewController as the root view controller of a UINavigationController. Its view is a UITableView using the UITableViewStyleGrouped style. The table view also has a UIRefreshControl. I am not using nib/xib files,…
Alec
  • 1,646
  • 3
  • 19
  • 35
0
votes
1 answer

ECSlidingViewController freezes UIRefreshControl

I'm using ECSlidingViewController in my app. I have a View Controller with a UITableView in it, which uses a UIRefreshControl to execute a long task. When I pull down to refresh, the refresh control starts animating normally but when I go to the top…
0
votes
2 answers

UIRefreshControl without UITableViewController not calling selector

I have a UIViewController that has a UITableView as a subview. I am trying to add a pull-to-refresh on the table. Following some examples and discussions that I found here, I have the UIRefresh showing but it never calls the selector. I am not…
Alan
  • 796
  • 9
  • 26
0
votes
1 answer

UIRefreshControl appering in duplicated

Anyone know why myscrollview show the UIRefreshControl in duplicated? UIRefreshControl *refreshControl; refreshControl = [[UIRefreshControl alloc] initWithFrame:CGRectMake(0, 0, 20, 20)]; refreshControl.tintColor = [UIColor…
Pak
  • 5
  • 2
0
votes
0 answers

UIRefresh Control title gets misaligned after couple of refreshes

I am using UIRefreshControl to implement pull down to refresh in my IOS app. It works fine. But after a few refreshes say for exactly third or fourth one it crops the title a bit and immediately it gets misaligned. Please check the attached images…
Zach
  • 9,989
  • 19
  • 70
  • 107