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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to