Doug Smith Doug Smith - 1 year ago 68
iOS Question

How do I "hide" a UIRefreshControl?

Occasionally my table view won't be connected to a service to refresh, and in that case, I don't want the UIRefreshControl to be present.

After I add it in viewDidLoad, I've tried hiding it under certain circumstances with

but neither seems to work.

Answer Source

Try setting your table view controller's refreshControl property to nil.