UITextField
常用属性
提示文本:NSString *placeholder
边框样式:UITextBorderStyle borderStyle
获取第一响应时是否清除文本内容:BOOL clearsOnBeginEditing
清除文本内容的显示样式:UITextFie ldViewMode clearButtonMode
背景图片:UIImage *background
禁用时的背景图片:UIImage *disabledBackground
左侧图片:UIView *leftView
左侧图片显示方式:UITextFieldViewMode leftViewMode
右侧图片:UIView *rightView
右侧图片显示方式:UITextFieldViewMode rightViewMode
自定义输入区:UIView *inputView
自定义输入区和系统键盘混合使用:UIView *inputAccessoryView
自动更正方式:UITextAutocorrectionType autocorrectionType
检查拼写方式:UITextSpellCheckingType spellCheckingType
键盘模式:UIKeyboardType keyboardType
键盘回车键样式:UIReturnKeyType returnKeyType
第一响应者
FirstResponder
成为第一响应者:[yourTf becomeFirstResponder]
移除第一响应者:[yourTf resignFirstResponder]