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;       // 设定为密码输入方式

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-02-26
  • 2021-09-07
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2021-04-26
  • 2021-12-13
  • 2022-12-23
  • 2022-01-22
相关资源
相似解决方案