博客> iOS-UITextField常规使用
iOS-UITextField常规使用
2019-08-18 05:08 评论:0 阅读:687 带我去远方2014520
ios

1.这篇文章说的很清楚 http://blog.csdn.net/lbuskeep/article/details/28543183

2.textField修改 Placeholder 颜色和大小 UITextField *txt = [[UITextField alloc] init]; txt.backgroundColor = [UIColor whiteColor]; [txt setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"]; [txt setValue:[UIFont boldSystemFontOfSize:15] forKeyPath:@"_placeholderLabel.font"];

收藏
0
sina weixin mail 回到顶部