我通过子类UIInputViewController实现自定义键盘。iOS swift自定义键盘无法检测到keyboardType
我想为emailAddress实现键盘。
我的Xcode: - 8.1的iOS:-10.1快捷版: - 3.0
我试图代码,找出键盘类型
textDocumentProxy.keyboardType?.rawValue
(textDocumentProxy as UIKeyInput).keyboardType?.rawValue
但是,这两条线送花儿给人给人0,其默认的键盘类型。
任何人都可以帮助我。
是[这个问题/答案](http://stackoverflow.com/questions/42130932/ios-how-to-get-the-current-visible-keyboard-type/42131221#42131221)有用的你的情况? –
看到这个http://stackoverflow.com/questions/26579056/ios-8-custom-keyboard-extension-uikeyboardtype –