How to set keyboard type for custom view?
How to set keyboard type for custom view?
- Subject: How to set keyboard type for custom view?
- From: Jeffrey Walton <email@hidden>
- Date: Tue, 31 May 2011 15:23:26 -0400
Hi All,
I have a view that accepts input using UIKeyInput. The VC's
viewWillAppear: calls [myHiddenView becomeFirstResponder] which shows
the alphanumeric keyboard. I get input as expected through insertText:
and deleteBackwards:.
How does one change the keyboard type to UIKeyboardTypeNumberPad? I've
tried conforming to UITextInputTraits in my custom view, but the
keyboard does not appear to reach back to my view for the trait. Is
there anything special when a protocol only includes properties? Or
perhaps I have missed another [important] detail?
Jeff
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden