iosobjective-cuirefreshcontrol

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 setEnabled: and setHidden: but neither seems to work.


Solution

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