• 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
How to set keyboard type for custom view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to set keyboard type for custom view?
      • From: Conrad Shultz <email@hidden>
  • Prev by Date: Re: Fuzzy string matching
  • Next by Date: Re: How to set keyboard type for custom view?
  • Previous by thread: Re: Fuzzy string matching
  • Next by thread: Re: How to set keyboard type for custom view?
  • Index(es):
    • Date
    • Thread