UITextField * _myTitle = [[UITextFieldalloc] init];
[_myTitlebecomeFirstResponder];
//设置键盘颜色
_myTitle.tintColor = [UIColorwhiteColor];
//设置占位文字颜色
[_myTitlesetValue:[UIColorwhiteColor]forKeyPath:@"_placeholderLabel.textColor"];
UITextField * _myTitle = [[UITextFieldalloc] init];
[_myTitlebecomeFirstResponder];
//设置键盘颜色
_myTitle.tintColor = [UIColorwhiteColor];
//设置占位文字颜色
[_myTitlesetValue:[UIColorwhiteColor]forKeyPath:@"_placeholderLabel.textColor"];