I have seen some answers that show how to change the placeHolder text color for UITextField by overriding the drawPlaceholderInRect: method such as this one:
iPhone UITe
here See my outputThis is just for get system font name
for (NSString *familyName in [UIFont familyNames]) {
for (NSString *fontName in [UIFont fontNamesForFamilyName:familyName]) {
NSLog(@"%@", fontName);
And add a this code in your viewDidLoad
_textFieldEmail.attributedPlaceholder =
[[NSAttributedString alloc] initWithString:@"e-mail address"
attributes:@{
NSFontAttributeName : [UIFont fontWithName:@"Roboto-LightItalic" size:17.0]
}
];
_textFieldPassword.attributedPlaceholder =
[[NSAttributedString alloc] initWithString:@"password"
attributes:@{
NSFontAttributeName : [UIFont fontWithName:@"Roboto-LightItalic" size:17.0]
}
];