Home:ALL Converter>Change look of Segmented Control in IOS 6 and 7

Change look of Segmented Control in IOS 6 and 7

Ask Time:2014-02-08T06:24:42         Author:CasaDelGato

Json Formatter

Our large IOS app has a bunch of Segmented controls. The new IOS 7 B&W look - looks like crap in our app. I can change the background color (and set the corner radius) so we have colored buttons again - BUT it then looks like crap when run on an IOS 6 phone. For IOS 6 I have to change the Tint color and NOT change the background color.

Adding conditional code to do this for each individual control would be a royal pain. Creating a subclass to do this - and modifying all the XIB's to use it - would also be a pain.

Is there any way to modify the look of a control for the entire app? Can a class extension do this?

Author:CasaDelGato,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/21638898/change-look-of-segmented-control-in-ios-6-and-7
yy