Closed realcarlos closed 8 years ago
Upload a screenshot if you can
and same problem occurs in UIImagePickerController ,the background color of cancel button and choose button
Which color should it be ? Keep in mind that globalTheme methods affect almost all the UI components in the app
I think that the color of checkmark should be flatBlueColor,but it becomes white.
That's because of how UIBittons are themed.
UIStatusBar and UITableViewCell display the wrong color.
If you're seeing unexpected results for UIStatusBar
, make sure you set the following key View controller-based status bar appearance
in your info.plist
file to NO.
With regards to the UITableViewCell
, I have found a solution. Add these two lines to your view controller and it should fix the problem:
[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UITableViewCell class]]] setBackgroundColor:ClearColor];
[[UIButton appearanceWhenContainedInInstancesOfClasses:@[[UITableViewCell class]]] setTintColor:FlatBlue];
The reason I haven't added this is because I haven't decided whether it should be the default behavior or not. Obviously this is really useful, but it also messes up any other button in a UITableViewCell
. Until I figure out how to only affect these accessory view buttons and not all UIButton's
inside UITabelViewCell's
it'll just have to be done manually.
and same problem occurs in UIImagePickerController ,the background color of cancel button and choose button
This has been solved in Chameleon 2.0.5. :+1:
when set
[Chameleon setGlobalThemeUsingPrimaryColor:[UIColor flatBlueColor] withContentStyle:UIContentStyleContrast];
UIStatusBar
andUITableViewCell
display the wrong color.