PDA

View Full Version : UITextView does not respond to UITextInputTraits Protocol




jsnuff1
Feb 11, 2009, 04:59 PM
I have a UITextView in my app and would like to change the keyboard appearance and return key etc. Unfortunately using the UITextInputTraits protocol does nothing to the keyboard which is displayed when tapping the UITextView.

For example I do something like this


myUITextView.keyboardAppearance = UIKeyboardAppearanceAlert;


am I doing something wrong?


Thanks!



jnic
Feb 12, 2009, 04:08 AM
myUITextView.keyboardType (https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html#//apple_ref/occ/intfp/UITextInputTraits/keyboardType) = UIKeyboardTypeDefault (https://developer.apple.com/iphone/library/documentation/UIKit/Reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html#//apple_ref/doc/c_ref/UIKeyboardType);