spinneruiactivityindicatorviewuirefreshcontrol

Remove UIRefreshControl default spinner


I have subclassed UIRefreshControl to make my own, and I can manage everything except one thing :

The default spinner is always visible, and is of course in the middle of everything I've done in my custom implementation.

I can't find the spinner property or whatever it is I need to put to a clear color, can anyone help me on this?


Solution

  • To hide spinner loader in a UIRefreshControl, set the .tintColor property to a clear color.

    e.g. (Swift):

    mRefreshControl.tintColor =.clear