开发者

UIKeyboard - turn off caps lock key

开发者 https://www.devze.com 2023-02-06 03:01 出处:网络
I开发者_如何学编程n my iPhone application, I want to turn off the caps lock key when my uikeyboard is shown.

I开发者_如何学编程n my iPhone application, I want to turn off the caps lock key when my uikeyboard is shown.

Is it possible to do so?


Any UI control that conforms to the UITextInputTraitsProtocol has a property called autocapitalizationType. Setting this to autocapitalizationTypeNone, either in code or via Interface Builder, will prevent the caps lock key being active when the keyboard for that element is shown.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号