trever
trever

Reputation: 1003

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?

Upvotes: 12

Views: 13852

Answers (3)

Duy Phan
Duy Phan

Reputation: 803

For swift 4 you can using

 self.yourTableView.refreshControl = nil

Upvotes: 4

Gman9855
Gman9855

Reputation: 487

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

enter image description here

Upvotes: 4

Chris Loonam
Chris Loonam

Reputation: 5745

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

self.refreshControl = nil

Upvotes: 14

Related Questions