Disable Pull-To-Refresh

I have a static group of cells, several groups actually, and for some reason the pull to refresh function is turned on, I canโ€™t figure out where, at least in the Xcode Interface builder, the option disables this. I assume that I will have to do this programmatically.

Does anyone know how this should be done in Swift?

+5
source share
2 answers

If you are using a UITableViewController , this should be something simple, like

 self.refreshControl = nil 
+5
source

In the storyboard, go to your attribute inspector for your view controller and turn it off where it says โ€œRefreshโ€:

enter image description here

+4
source

Source: https://habr.com/ru/post/1233441/


All Articles