2011-11-08 119 views

回答

0

UITextInputTraitsProtocol有一個名爲autocapitalizationType的屬性。將其設置爲autocapitalizationTypeNone,使大寫鎖定鍵處於非活動狀態。也許ü在iOS 6中該屬性設置爲none

+0

它「不是作品,我已經採取UITextInputTraitsProtocol後itried做 」[文本框setAutocapitalizationType:UITextAutocapitalizatioTypeNone]「 ......但它「不行。 –

+0

請勿將autocapitalizationType設置爲none嘗試 - [textfield setAutocapitalizationType:UITextAutocapitalizationTypeAllCharacters] – iOSPawan

0

textField.autocapitalizationType = UITextAutocapitalizationTypeSentences;