【问题标题】:UIKeyboardTypeNumbersAndPunctuation ignored on a UITextField with secure text entryUIKeyboardTypeNumbersAndPunctuation 在具有安全文本输入的 UITextField 上被忽略
【发布时间】:2010-09-01 17:09:02
【问题描述】:

我有一个代表数字密码的 UITextField。我需要同时将键盘类型设置为 UIKeyboardTypeNumbersAndPunctuation 和 secureTextEntry。

如果我将 secureTextEntry 设置为 Yes,即使我已将 UIKeyboardTypeNumbersAndPunctuation 设置为 textField 键盘类型,textField 也会显示默认键盘。

另一方面,如果我将键盘类型设置为 UIKeyboardTypeNumberPad,它可以正常工作,但我没有完成/返回键来关闭该键盘。 =S

是否有解决方案或解决方法?

谢谢!

【问题讨论】:

    标签: iphone uitableview uitextfield uikeyboard


    【解决方案1】:

    不知道是不是bug……

    我改了代码

    XXX.KeyboardType = UIKeyboardTypeNumbersAndPunctuation

    XXX.secureTextEntry = 是

    XXX.secureTextEntry = 是

    XXX.KeyboardType = UIKeyboardTypeNumbersAndPunctuation

    然后,它起作用了......

    【讨论】:

      猜你喜欢
      • 2016-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-06
      • 2012-10-03
      • 2019-09-11
      • 1970-01-01
      相关资源
      最近更新 更多