jamonholmgren / ProMotion

ProMotion is a RubyMotion gem that makes iPhone development less like Objective-C and more like Ruby.
MIT License
1.26k stars 148 forks source link

Style/customize UIRefreshControl? #685

Open nickyhajal opened 9 years ago

nickyhajal commented 9 years ago

Is there any way to customize the text, text color and font of the UIRefreshControl on a refreshable TableScreen?

Any chance there's a way to customize the color of the loading indicator itself?

Thanks!

markrickert commented 9 years ago

Check out the documentation for refreshable here: https://github.com/clearsightstudio/ProMotion/blob/master/docs/Reference/API%20Reference%20-%20ProMotion%20TableScreen.md#refreshableoptions--

As far as customization of the color, I'd look into the UIAppearance class to do that.

nickyhajal commented 9 years ago

Thanks! Looks like those cover setting the text and color of the loading indicator but not the actual attributes of the text since there's no way to pass them in, for example, here:

https://github.com/clearsightstudio/ProMotion/blob/171e3ad1faa3c5a23be7c7057582b4b5bfb32ba7/lib/ProMotion/table/extensions/refreshable.rb#L31

Looks like UIAppearance can set the UIRefreshControl attributedTitle but it doesn't seem to have titleTextAttributes like UINavigationBar.

Getting that from here: http://stackoverflow.com/questions/9424112/what-properties-can-i-set-via-an-uiappearance-proxy

Am I reading that right or missing something?

Thanks again!

jamonholmgren commented 9 years ago

@nickyhajal Did you get this figured out? Sorry about the slow responses, I missed this one.