12
votes

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?

3

3 Answers

14
votes

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

self.refreshControl = nil
4
votes

In storyboard, go to your Attributes Inspector for your View Controller and disable it there where it says 'Refreshing':

enter image description here

3
votes

For swift 4 you can using

 self.yourTableView.refreshControl = nil