UITextField 小结
文字属性
text
placeholder //默认使用 70%灰色
font
textColor
textAlignment
文字大小
adjustsFontSizeToFitWidth
minimumFontSize
编辑行为
editing //是否正在编辑(read-only)
clearsOnBeginEditing
展现形态
borderStyle
// 默 认
UITextBorderStyleNone , 是
UITextBorderStyleRoundedRect 时自定义的 background 无效
background
disabledBackground property //background 未设置时,这个会无效
覆盖视图
clearButtonMode
leftView //像 clearButton 那样的视图,不过在左边,不要忘了设置 mode
leftViewMode
rightView //默认覆盖 clearButton
rightViewMode
访问代理
delegate property
绘画界面