Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style/customize UIRefreshControl? #685

Open
nickyhajal opened this issue May 6, 2015 · 3 comments
Open

Style/customize UIRefreshControl? #685

nickyhajal opened this issue May 6, 2015 · 3 comments
Labels

Comments

@nickyhajal
Copy link

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants