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.
精彩评论