user2618646
user2618646

Reputation: 161

UIKeyboardTypeDecimalPad for ipad

For iPad application I want to change type of keyboard from default to UIKeyboardTypeDecimalPad. But it shows me default only. And I am using iOS 6

Upvotes: 1

Views: 771

Answers (1)

Ashwani
Ashwani

Reputation: 3481

For your UITextfield use this in code:

myTextField.keyboardType=UIKeyboardTypeDecimalPad;

In iOS 5.1 or 6.1 iPad only these keyboard are available:

  • UIKeyboardTypeASCIICapable
  • UIKeyboardTypeNumbersAndPunctuation
  • UIKeyboardTypeURL
  • UIKeyboardTypeNumberPad
  • UIKeyboardTypeNamePhonePad
  • UIKeyboardTypeEmailAddress
  • UIKeyboardTypeTwitter

Upvotes: 2

Related Questions