well I'm assuming if the user hits return, then you want the keyboard to disappear, not stay on screen. Look up in the documentation UITextFieldDelegate protocol, and a method textFieldShouldReturn, this will hide the keyboard. Assuming that you want the keyboard to disappear from screen. This makes more sense than keeping it on screen once return is hit.

------
yandy

On Oct 18, 2009, at 3:00 PM, Tron Thomas wrote:

I found the setting in Interface Builder. This works in that the keyboard initially appears in numeric mode. However, when someone presses the return key, the keyboard switches to letter mode. How can someone prevent this behavior?

Yandy Ramirez wrote:
numbers and punctuation in IB textfield properties for keyboard type


------
yandy

On Oct 17, 2009, at 8:53 PM, Tron Thomas wrote:

When an UITextField becomes active in a Cocoa Touch application, the device automatically displays a keyboard for character input. The keyboard always appears in alphabet mode so letters can be typed.

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?

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/yandy%40me.com

This email sent to ya...@me.com





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to