Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Switching stylesheets, UICollectionView (?) #57

Open
wimhaanstra opened this issue Apr 28, 2014 · 4 comments
Open

Switching stylesheets, UICollectionView (?) #57

wimhaanstra opened this issue Apr 28, 2014 · 4 comments

Comments

@wimhaanstra
Copy link
Contributor

In my application, when the application is launched, it sets a default stylesheet.

But then it starts communicating with our webserver, which tells the application which stylesheet should be loaded and it switches to a different stylesheet.

This works fine, but the UICollectionViews do seem to have a problem with the background color set in the stylesheet (and maybe other properties).

UICollectionViews also had the problem that they didn't appear correctly without using a cas_styleClass. Since I added that to the UICollectionView, the background is correctly set, but now while switching theme it appears to happen again.

@mattsson
Copy link

I've had the same issue with not seeing styling until I specifically set cas_styleClass.

@wimhaanstra wimhaanstra changed the title Switching stylesheets Switching stylesheets, UICollectionView (?) Apr 28, 2014
@wimhaanstra
Copy link
Contributor Author

@mattsson did you have this with the UICollectionView or other views also?

@mattsson
Copy link

Also other views, e.g. UIButton.

@cloudkite
Copy link
Contributor

@depl0y possibly a bug in that existing views don't get restyled when you switch stylesheets. I never tried switching stylesheets after the first one has loaded so there's probably a few things its not doing properly

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

No branches or pull requests

3 participants