xcode - Catch if UITextField want a num / decimal / default pad in a Third-Party Keyboard? -
i'm developing custom keyboard own application , need know if uitexfield focused want decimal or default version of third-party keyboard.
is there way ?
func checkaboutkeyboardtype() { switch self.textdocumentproxy.keyboardtype { case uikeyboardtype.default? : print("default") break case uikeyboardtype.decimalpad? : print("decimal pad") break case uikeyboardtype.numberpad? : print("number pad") break default : print("unknown") } }
Comments
Post a Comment