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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
29 views

refreshControl webview react native not working on android (ios run perfect)

where ever i try to scroll top inside the webview it reload . no matter in i am at the top of webview or in medel or end . in ios only in the top it relaod hear is my code look like <ScrollView ...
0 votes
0 answers
35 views

Refresh contents of tableView with Scroll

I have a table view with user comments, ideally when a users adds a new comment and refreshes the view by using pull to refresh function, the table view should reload and show the new comments. ...
1 vote
1 answer
66 views

Getting react unmounted hook error with Refresh Control

When I use const onRefresh = () => { setRefreshing(true); setTimeout(() => { setRefreshing(false); }, 2000); }; with RefreshControl in Scroll View and then I get change the page in ...
0 votes
2 answers
122 views

How do I add a UIRefreshControl to a UITableView programmatically?

I am trying to add a UIRefreshControl to a UITableView, which is in a UINavigationController. I have tried setting tableView.refreshControl = refreshControl, but it doesn't work properly. How can I ...
2 votes
1 answer
87 views

UICollectionView + UIRefreshControl animation differences to Apple Mail app

I am implementing a ViewController with an UICollectionView + UIRefreshControl and large titles. Its pull to refresh animation looks different compared to the ones from Apple Apps like Mail. In the ...
  • 2,048
0 votes
1 answer
87 views

Custom UIRefreshControl content not showing gradually

I have created a custom view and adding it as a subview inside my scroll view's refresh control, like so: private func configureRefreshControl() { scrollView.refreshControl = UIRefreshControl() ...
  • 142
0 votes
1 answer
492 views

Lottie Animation glitching in UIRefreshControl subview in Swift

I am trying to load a Lottie animation in the subview of scrollview.refreshControl, the animation appears on the pull to refresh but is glitching which makes the animation look not smooth and appears ...
1 vote
1 answer
709 views

SwiftUI Introspect library pull to refresh issue

I want to implement pull to refresh in my scrollview in SwiftUi. So I have been trying Introspect library to use its .introspectScrollView and use refresh controller. But I have been getting an issue ...
user avatar
1 vote
1 answer
448 views

Swift 5.5: Async @objc didPullToRefresh selector crashes app with error EXC_BAD_ACCESS

I have a table to which I've added a refreshControl and when I pull down to refresh the content, I reset the array that feeds the table with data and then immediately request new data through an API ...
  • 35
1 vote
0 answers
177 views

swiftUI ScrollView UIRefreshControl overlay on navigation bar

Until iOS 15.2 , the SwiftUI ScrollView doesn't support refreshable{}, so I using UIRefreshControl to solve this issues. Everything went smoothly and success was just one step away ;-( full code ...
  • 3,648
0 votes
0 answers
147 views

UIRefreshControl sometimes gives me a weird behavior

I added the UIRefreshControl to the collection view (where the view controller has navigation bar, tabbar and collection view), and mostly it works as it should be. (drag down the collection view, ...
  • 666
1 vote
1 answer
71 views

My WPF button needs to change the Content of a different button

I have 2 WPF buttons...when I click on one, I want the Content of the other button to change. Right now, when I click on btn1, the btn2 Content does not change. I have attempted a btn2....
  • 21
1 vote
1 answer
854 views

Custom Pull to refresh in Swift

I am using a custom spinning wheel class and want to use it as a UIRefreshControl but cannot quite figure it out. The custom loading indicator is showing, but the default one is as well (see below), ...
0 votes
1 answer
196 views

Refresh Control in Horizontal UICollectionView

I want to implement a Refresh Control on my horizontal UICollectionView, but I can't figure out how to implement it. I essentially want to be able to swipe right one the first cell (cells take up the ...
  • 1,060
1 vote
0 answers
429 views

Pull to refresh not working on table view

I have a tableview in my view controller and i am trying to implement the pull to refresh function. When i pull to refresh the table view does not reload and the data is not updated. When i print the ...
0 votes
1 answer
172 views

Lottie animation subview of UIRefreshControl appears off-center

I am currently implementing a custom UIRefreshControl using a square Lottie animation. I have been wrestling with the autolayout constraints for the Lottie subview to my UIRefreshControl. I would ...
  • 155
0 votes
2 answers
161 views

Make the UIRefreshControl short for swiping

When using the standard UIRefreshControl in TableView the swipe down can be too long, that is, I have to drag my finger almost to the very bottom of the screen. Is it possible to shorten the swipe ...
  • 3
1 vote
0 answers
540 views

Using `sectionHeadersPinToVisibleBounds` while a `UIRefreshControl` is refreshing causes incorrect position of sticky headers

When using a UICollectionView with a UICollectionViewFlowLayout that has sectionHeadersPinToVisibleBounds set to true the sticky headers will be positioned incorrectly when a UIRefreshControl added to ...
  • 4,476
0 votes
1 answer
1k views

Why does pull to refresh is not working on scrollview

While pulling down to refresh, the controller target method is not being called. Why is this issue happening? override func viewDidLoad() { super.viewDidLoad() ...
0 votes
2 answers
44 views

Why am I getting the error 'Type 'PublicTableViewController' has no member 'handleRefresh''

I am trying to implement pull to reload for my UITableViewController in swift here is my code: class PublicTableViewController: UITableViewController{ override func viewDidLoad(){ super....
  • 749
2 votes
1 answer
961 views

UIRefreshControl: table view jumps weirdly

I have a UIRefreshControl inside a table view, and my problem is that when I pull down the table view, there is a certain point where the size change of the refresh control is not animated, but it ...
  • 497
1 vote
1 answer
343 views

Removing white space between Tableview and Refresh Control iOS 14

I have a tableview with a refresh control that has a custom background colour but when I actually pull to refresh I can see there is light grey line that appears between the 2 when the tableview is ...
  • 422
3 votes
4 answers
951 views

RefreshControll data duplicate everytime do pull to refresh on ScrollView in React native

Description I implement a pull request using RequestController in React Native, every time I did pull to refresh the same data keep adding on in Flat list over and over. I implemented pull request not ...
0 votes
0 answers
53 views

UIRefreshControl only shows when view is presented for the first time

I have a vertical scroll view which takes up the full view. I've added a UIRefreshControl to the scroll view and it all works great... Until the view is dismissed and then presented again. When it's ...
  • 81
2 votes
0 answers
357 views

Manually refresh UIRefreshControl not visible when using `navigationBar.prefersLargeTitles`

I create a programmatically refresh on my table view using this code extension UIRefreshControl { func beginRefreshingManually() { if let scrollView = superview as? UIScrollView { ...
  • 1,059
1 vote
3 answers
232 views

UIRefreshControl was functioning but not animating

I have a UIRefreshControl that is works really fine, it calls the function when scrolled down but the problem is it's not animating, and I don't see any problem in my codes, is there any other way ...
  • 1,059
0 votes
1 answer
172 views

Sound in Refresh controller

So, I have standard refresh controller in my UITableViewController, which updates the data in table view. lazy var refresher: UIRefreshControl = { let refreshControl = UIRefreshControl() ...
0 votes
1 answer
249 views

UIRefreshControl can’t be disabled

I have a UITableViewController inside a storyboard. I’ve enabled the pull to refresh property using interface builder. I would like to disable and re enable the pull to refresh functionality ...
0 votes
1 answer
169 views

Add refreshControl to a scrollView with pageControl

As it can be seen in the gif from the link, I was able to add the refresh control to the scrollView but it is only shown for the first page. It still works for the other pages but it is not showing ...
  • 107
1 vote
0 answers
263 views

Add a refresh control to a horizontal scrollview with page control

I am using a horizontal scrollview with paging like it can be seen here: https://medium.com/@anitaa_1990/create-a-horizontal-paging-uiscrollview-with-uipagecontrol-swift-4-xcode-9-a3dddc845e92 The ...
  • 107
2 votes
0 answers
2k views

RefreshControl styling in react-native

I make some feedlines using Viewpager. I wanna second picture's refresh style. buy my code shows the first picture's style. how can i change refreshControl to be second picture style...? or using ...
0 votes
2 answers
432 views

Swift: Custom action for UIRefreshControl in WKWebView

I'm using the newest Xcode and Swift version. I'm using WKWebView to display content from my webserver. I'm using the following code to pull to refresh: let refreshControl = UIRefreshControl() ...
  • 2,818
10 votes
3 answers
2k views

UITableView UIRefreshControl with Large Title navigation does not stick to top - it moves

I have used UITableView.refreshControl with large titles. I am trying to mimic the way the native Mail app works with pull to refresh. The refresh control, for me, moves and doesn't stay stuck at the ...
  • 1,037
0 votes
0 answers
127 views

How to refresh the content when buttons are pressed?

I have a question about refreshing widgets when a button is pressed. As you can see the picture below, when I press on the button's (+) and (-) the text in between changes. However, the "Your GPA" and ...
1 vote
1 answer
698 views

Can you use React Native RefreshControl without hooks?

I want to use RefreshControl in my React Native app, but the demo implementation in their docs uses hooks, which I'm not using in my app. When I copy paste the demo code, I get the error Hooks can ...
  • 5,636
0 votes
2 answers
236 views

UIRefreshControl renders behind UINavigation w/ Large Titles

I am trying to create a UITableViewController, with a UINavigationBar using large titles. The trouble I am having is, when using pull to refresh on an empty table view, the loading indicator is ...
  • 4,082
0 votes
1 answer
447 views

How to activate refresh control without pulling down (Swift)

I want to show the spinner of refresh control in the table view immediately without the user pulling the table view down to refresh it. Is that possible to do? If yes, how can I implement it? I ...
  • 455
1 vote
1 answer
5k views

React doesn't render without Reloading the page on URL Change

I'm trying to create a dashboard structure, with redirect on button click to different components. I am able to do the URL change, but still the page doesn't load without a hard reload on that url. ...
0 votes
1 answer
506 views

ScrollView.refreshControl = refreshControl does not show custom settings. Function executes, but no display feedback

I have a ScrollView with 3 collection views within it. I implemented a refresh control. The refresh control correctly functions in the sense that it triggers the required function - and even pulls ...
  • 271
0 votes
1 answer
471 views

refresh controller freeze after changing tap tab bar quickly

I use refresh controller. It works well when I tap the tab bar item after the refresh animation completely end. But if I tap the bar item very quickly before the animation done, it will be freeze. I ...
1 vote
0 answers
299 views

Pull to refresh jumps while dragging

I've used this tutorial to implement pull to refresh in tableview https://cocoacasts.com/how-to-add-pull-to-refresh-to-a-table-view-or-collection-view Cells have dynamic height in my table. When I ...
  • 1,062
0 votes
1 answer
73 views

Reloading only new data after dismissing previous VC

So I have a Photo VC where I can post an image and a caption as outlined below: @IBAction func postPressed(_ sender: Any) { self.view.isUserInteractionEnabled = false if imageOutlet....
1 vote
1 answer
215 views

UIRefreshControl's tintColor can't be initially set

I'm currently struggling with a problem that I couldn't handle and I wasn't able to find any answer or workarounds. The problem is that I want to change color for the refreshControl to .white for ...
0 votes
1 answer
105 views

RefreshControl doesn’t work in one of tabs with code used in similar way in other tabs

The app tab uses refresh button to update list which works fine. Trying to use "pull down to refresh" but it doesn’t work at all. protocol StaffHistoryDelegate: class { func updateList() } ...
3 votes
1 answer
1k views

pull down to refresh data in swift UI

I am trying to develop my first IOS app in SwiftUI and I want to have a pull down to refresh List. I already know that at the moment Apple hasn't implemented it but I found the following solution here ...
2 votes
0 answers
439 views

iOS 13.1 refresh control not refreshing

I have following simple code to setup UIRefreshControl with UIScrollView private func pullToRefershSetup () { let normalAttributes: [NSAttributedString.Key: Any] = [ .font:AppTheme.Fonts....
3 votes
1 answer
2k views

pull to refresh in tableview from presenting modal in iOS 13 not working

I've used UIRefreshControl inside the tableview and it presented the view controller as automatically in ios 13. The tableview inside the same view controller is used. vc.modalPresentationStyle = ....
0 votes
1 answer
681 views

Refresh Control With Hidden Navigation Bar

Let me start by saying I have implemented Refresh Control throughout the application I'm working on and understand how it works when used inside a navigation controller with a visible navigation bar. ...
6 votes
1 answer
1k views

iOS 13 UISearchController + UIRefreshControl glitch

I'm using a UISearchController for search in a UITableViewController that also supports pull-to-refresh via UIRefreshControl. The setup is very simple in a reduced Demo project override func ...
  • 3,348
0 votes
2 answers
179 views

how to pass static parameters to a local function for UIRefreshControl() in addTarget #Selector

I have added refreshcontrol to my table view , while pulling down , it should call a local method with dictionary as parameter. But i searched a lot but couldnt send a dictionary as a parameter in ...

1
2 3 4 5
10