iPhone: Can't find keyplane that supports type 8 for keyboard iPhone-Portrait-DecimalPad; using Default?

StackOverflow https://stackoverflow.com/questions/4694854

  •  11-10-2019
  •  | 
  •  

문제

I'm writing an iPhone app which uses a keypad that includes a decimal point. Because this is not standard in the Interface Builder i have assigned this to a text field in the viewDidLoad method like this:

[self.TextField_PrintedRepeat setKeyboardType:UIKeyboardTypeDecimalPad];

When i run this app, tap the text field and expose the keypad, i get this entered into the console log:

Can't find keyplane that supports type 8 for keyboard iPhone-Portrait-DecimalPad; using Default

Have you any ideas what this means?
Do i need to worry?
How can i stop this console message?

EDIT: i'm using iOS 4.2.1

도움이 되었습니까?

해결책

What version OS are you running against? the DecimalPad keyboard type was only introduced in 4.1, so if you are planning on allowing prior versions you will get this warning, and it will revert to the normal keyboard type. If you don't want this happening, check for the existence of UIKeyboardTypeDecimalPad before doing the call.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top