1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| // interface graphique pour iOS 7
NSString *ver = [[UIDevice currentDevice] systemVersion];
float ver_float = [ver floatValue];
if (ver_float >= 7.0){
//NSLog(@"System Version is %@",[[UIDevice currentDevice] systemVersion]);
// Exemple de code
[label setTextColor:[UIColor grayColor]];
[Switch setTintColor:[UIColor redColor]];
[Switch setOnTintColor:[UIColor redColor]];
[bouton setTintColor:[UIColor redColor]];
[textfield setTextColor:[UIColor redColor]];
self.view.backgroundColor = [UIColor whiteColor];
textfield.backgroundColor = [UIColor clearColor];
textfield.layer.borderColor = [[UIColor redColor] CGColor];
textfield.layer.borderWidth = 1.0f;
textfield.layer.cornerRadius = 8.0f;
} |
Partager