Autocapitalization

迅速

textField.autocapitalizationType = .None

Objective-C

textField.autocapitalizationType = UITextAutocapitalizationTypeNone;

所有選擇:

  • .None \ UITextAutocapitalizationTypeNone:不要對任何事情進行自動投資
  • .Words \ UITextAutocapitalizationTypeWords : Autocapitalize every word
  • .Sentences \ UITextAutocapitalizationTypeSentences:自動調整句子中的第一個單詞
  • .AllCharacters \ UITextAutocapitalizationTypeAllCharacters:自動調整每個字母(即大寫鎖定)