http://blog.csdn.net/rubycrow/article/details/22411805
方法1:
[objc] view plaincopyprint?
- [[UITextField appearance] setTintColor:[UIColor blackColor]];
这种方法将影响所有TextField。
方法2:
[objc] view plaincopyprint?
- textField.tintColor = [UIColor redColor];
如果在InterfaceBuilder中修改View的TintColor属性并不好用。
参考http://stackoverflow.com/questions/11606007/change-uitextfield-and-uitextview-cursor-caret-color
时间: 2024-11-09 17:44:41