Disable Pull-To-Refresh

trever picture trever · Oct 11, 2015 · Viewed 10.4k times · Source

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?

Answer

Chris Loonam picture Chris Loonam · Oct 11, 2015

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

self.refreshControl = nil