Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想插入一个电子邮件地址,所以第一个字符是小写的,但是当键盘出现时,第一个字符是大写的。我该怎么办?
将autocapitalizationType文本字段的属性设置为UITextAutocapitalizationTypeNone
autocapitalizationType
UITextAutocapitalizationTypeNone
你可能想要:
myTextField.keyboardType = UIKeyboardTypeEmailAddress;