ios9中缺少键的数字小键盘 [英] Number keypad with missing keys in ios9

查看:119
本文介绍了ios9中缺少键的数字小键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道为什么iOS9本机数字键盘中会发生这样的问题吗?

Does anyone know why an issue like this in iOS9 native Number Pad Occurs.

这仅在其中一个视图控制器中发生,在其余视图中都可以正常工作.

This only happens in one of the viewcontollers and in the rest it works fine.

我已经从界面构建器而不是通过代码设置了文本字段键盘类型.请提出如何解决此问题的建议.

I have set the textfield keyboard type from the interface builder and not via code.Please advice how to overcome this issue.

来自界面"构建器的ScreenShots,

ScreenShots from Interface builder,

推荐答案

在Interface Builder中配置键盘类型时,我遇到了同样的问题.

I had the same issue when configuring the keyboard type in Interface Builder.

如果我在viewDidLoad方法中设置了键盘类型,问题就会消失:

The problem disappears if I set the keyboard type in my viewDidLoad method:

eanTF.keyboardType = .NumberPad 

在提交中,我还将Appareance设置为default(在Interface Builder中).

I've also set the Appareance to default (in Interface Builder) in the commit.

这篇关于ios9中缺少键的数字小键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆