设定TextView键盘类型
1 UITextView * tv = [[UITextView alloc] init]; 2 3 tv.keyboardType = UIKeyboardTypePhonePad; // 设定键盘类型 4 tv.keyboardType = UIKeyboardTypeURL; 5 tv.returnKeyType = UIReturnKeyNext; // 设定键盘回车键类型 6 tv.enablesReturnKeyAutomatically = NO; // 设定回车键无效 7 tv.autocapitalizationType = UITextAutocapitalizationTypeAllCharacters; // 设定Shift键在什么情况下有效 8 tv.autocorrectionType = YES; // 设定自动校正功能是否有效 9 tv.secureTextEntry = YES; // 设定为密码输入方式