Re: Manipluate Cocoa Touch keyboard mode
Re: Manipluate Cocoa Touch keyboard mode
- Subject: Re: Manipluate Cocoa Touch keyboard mode
- From: Fritz Anderson <email@hidden>
- Date: Sat, 17 Oct 2009 20:09:58 -0500
On 17 Oct 2009, at 7:53 PM, Tron Thomas wrote:
I have an application containing a singular UITextField that is
intended for entering numeric data. I would like the keyboard to
come up in numeric mode and stay in that mode unless the user click
the button to toggle to letter mode, even if they press the return
key.
How can someone accomplish this keyboard behavior?
By searching for "keyboard" in the documentation. One of your hits in
the API will be the "keyboardType" property. It's defined in the
UITextInputTraits protocol, which the documentation will tell you
UITextField implements.
Your exploration of the inspector for text fields in Interface Builder
will have turned up a setter for this property, as well.
— F
_______________________________________________
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