iOS的键盘样式

textField.clearButtonMode 清除按钮出现模式

UITextFieldViewModeNever //clearbutton永远不出现

UITextFieldViewModeWhileEditing //编辑的时候出现

UITextFieldViewModeUnlessEditing //未编辑的时候出现         

UITextFieldViewModeAlways //永远都出现

textField.keyboardType  键盘的样式

UIKeyboardTypeDefault //Defaulttypeforthecurrentinputmethod.

UIKeyboardTypeASCIICapable //英文键盘

UIKeyboardTypeNumbersAndPunctuation //Numbersandassortedpunctuation. 

UIKeyboardTypeURL //AtypeoptimizedforURLentry(shows./.comprominently).

UIKeyboardTypeNumberPad //Anumberpad(0-9).SuitableforPINentry. 

UIKeyboardTypePhonePad //Aphonepad(1-9,*,0,#,withlettersunderthenumbers)

UIKeyboardTypeNamePhonePad //Atypeoptimizedforenteringaperson’snameorphonenumber.

UIKeyboardTypeEmailAddress // 利于邮箱输入有@按钮

UIKeyboardTypeAlphabet=UIKeyboardTypeASCIICapable //Deprecated

textField.keyboardAppearance

UIKeyboardAppearanceDefault //Defaultapperanceforthecurrentinputmethod.

UIKeyboardAppearanceAlert //Appearancesuitableforusein”alert”scenarios.

textField.autocapitalizationType 键盘对输入字母的控制

UITextAutocapitalizationTypeNone//什么也不做

UITextAutocapitalizationTypeWords//单词首字母大写

UITextAutocapitalizationTypeSentences//句子首字母大些

UITextAutocapitalizationTypeAllCharacters//所有字母大些

textField.autocorrectionType 键盘对输入字母自动纠正

UITextAutocorrectionTypeDefault

UITextAutocorrectionTypeNo

UITextAutocorrectionTypeYes

textField.returnKeyType 确认键的类型

UIReturnKeyDefault

UIReturnKeyGo

UIReturnKeyGoogle

UIReturnKeyJoin

UIReturnKeyNext

UIReturnKeyRoute

UIReturnKeySearch

UIReturnKeySend

UIReturnKeyYahoo

UIReturnKeyDone

UIReturnKeyEmergencyCall

你可能感兴趣的:(iOS的键盘样式)