开发者

Whether iPad 4.3 simulator is supporting UIKeyboardAppearanceAlert or not?

开发者 https://www.devze.com 2023-03-14 23:32 出处:网络
I have used this code: myTextField.keyboardType = UIKeyboardTypeNumberPad; myTextField.keyboardAppearance = UIKeyboardAppearanceAlert;

I have used this code:

myTextField.keyboardType = UIKeyboardTypeNumberPad;
myTextField.keyboardAppearance = UIKeyboardAppearanceAlert;

But when I run my project in iPad simulator 4.3, keyboard appearance is not getting changed?

It looks like the same as UIKeyboardAppearanceDefault one

The same code for iPho开发者_高级运维ne 4.3 works fine. Keyboard appearance is getting changed there.


The alert mode is meant for input in alert view, for important things. It has probably a different behavior. Apple uses it for example in the App/iTunes/iBookstore Store login screen.

Indeed, on the iPad, the appearance is the same.

I think that Apple recommends against using the alert mode.

0

精彩评论

暂无评论...
验证码 换一张
取 消