forked from mirrors/linphone-iphone
Fix placeholder color for iOS7
This commit is contained in:
parent
817f9c35b6
commit
626c280b09
1 changed files with 11 additions and 0 deletions
|
|
@ -153,6 +153,17 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
[videoCameraSwitch setHidden:TRUE];
|
||||
}
|
||||
}
|
||||
|
||||
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_6_0 // attributed string only available since iOS6
|
||||
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
|
||||
// fix placeholder bar color in iOS7
|
||||
UIColor *color = [UIColor grayColor];
|
||||
addressField.attributedPlaceholder = [[NSAttributedString alloc]
|
||||
initWithString:addressField.placeholder
|
||||
attributes:@{NSForegroundColorAttributeName: color}];
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue