@Ibrahim 89 Did you check my reply for the missing thing for it to work?
This is what my file looks like.
(sorry no formatting)
#import <Preferences/PSListController.h>
#import <Preferences/PSSpecifier.h>
#import <Preferences/PSControlTableCell.h>
@interface PSSwitchTableCell : PSControlTableCell
-(id)initWithStyle:(int)style reuseIdentifier:(id)identifier specifier:(id)specifier;
@end
@interface SRSwitchTableCell : PSSwitchTableCell
@end
@implementation SRSwitchTableCell
-(id)initWithStyle:(int)style reuseIdentifier:(id)identifier specifier:(id)specifier {
self = [super initWithStyle:style reuseIdentifier:identifier specifier:specifier];
if(self) {
[((UISwitch *)[self control]) setOnTintColor:[UIColor colorWithRed:0.90 green:0.50 blue:0.05 alpha:1.0]];
[((UISwitch *)[self control]) setThumbTintColor:[UIColor blackColor]];
[((UISwitch *)[self control]) setTintColor:[UIColor colorWithRed:0.30 green:0.20 blue:0.03 alpha:1.0]];
}
return self;
}
@end