Autocapitalization

迅速

textField.autocapitalizationType = .None

Objective-C

textField.autocapitalizationType = UITextAutocapitalizationTypeNone;

所有选择:

  • .None \ UITextAutocapitalizationTypeNone:不要对任何事情进行自动投资
  • .Words \ UITextAutocapitalizationTypeWords : Autocapitalize every word
  • .Sentences \ UITextAutocapitalizationTypeSentences:自动调整句子中的第一个单词
  • .AllCharacters \ UITextAutocapitalizationTypeAllCharacters:自动调整每个字母(即大写锁定)