• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Manipluate Cocoa Touch keyboard mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Manipluate Cocoa Touch keyboard mode (From: Tron Thomas <email@hidden>)

  • Prev by Date: Manipluate Cocoa Touch keyboard mode
  • Next by Date: Re: GC and atomic getters/setters
  • Previous by thread: Manipluate Cocoa Touch keyboard mode
  • Next by thread: Re: Manipluate Cocoa Touch keyboard mode
  • Index(es):
    • Date
    • Thread