rs / SDSegmentedControl

A drop-in remplacement for UISegmentedControl that mimic iOS 6 AppStore tab controls
MIT License
1.2k stars 180 forks source link

Unable to set two unique themes in the same application? #41

Open pcaddict08 opened 11 years ago

pcaddict08 commented 11 years ago

I'd like to have two separate color schemes for color stain and text color. Is there a way to do this in the same application? I'm able to set the new one after initializing the first, but when I try to set it back to the original scheme, nothing happens.

thiagoperes commented 10 years ago

Did you try using appearanceWhenContainedIn?

Something like:

[[SDStainView appearanceWhenContainedIn:[MyClass class], nil] setCornerRadius:2.0f];

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIAppearance_Protocol/Reference/Reference.html