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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -