Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Pull-To-Refresh

I have a static group of cells, a few groups actually, and for some reason the pull to refresh function is enabled, I can't figure out where, at least in Xcode Interface builder an option is to disable that. I assume I'll have to do it programmatically.

Does anyone know how this needs to be done in Swift?

like image 545
trever Avatar asked Oct 10 '15 22:10

trever


People also ask

How do I turn off pull to refresh?

When being at the very top of a web page on Chrome on your Android device, you may reload it by tap-holding, and swiping down. Of course, you may turn this feature off for all the tabs by visiting chrome://flags/#disable-pull-to-refresh-effect on your chrome browser, and then set it to Disable.

How do I stop Chrome from swiping to refresh?

Google Chrome for Android no longer has an option to disable “Pull to Refresh”. For people who don't really like using this feature, this is pretty annoying. There was a way to disable this using a flag, but version 75 removed this flag too.

What is pull down to refresh?

Pull-to-refresh lets a user pull down on a list of data using touch in order to retrieve more data. Pull-to-refresh is widely used on devices with a touch screen.


2 Answers

For swift 4 you can using

 self.yourTableView.refreshControl = nil
like image 115
Duy Phan Avatar answered Oct 01 '22 06:10

Duy Phan


If you're using UITableViewController, it should be something as simple as

self.refreshControl = nil
like image 41
Chris Loonam Avatar answered Oct 01 '22 06:10

Chris Loonam