iphone - how to detect Number and Decimal Keyboard iOS -


providing

I have a keypad for a custom keyboard I am developing on Apple App Store review guidelines based I decimals and number pad to:

  keyboard extensions app extensions programming Guide will be described as the number and decimal keyboard or rejected them   

so I decimal And the keyboard for the number textfield, so i cas They can locate text field types.

How do I know nothing about numbers or decimal keyboards in the text field that should load the decimal keyboard or number keypad?

Before every scene looks like (Swift) before you can get the current keyboard type the

viewWillAppear function overrides (animated: bool) {super.viewWillAppear (animated)

  // set keyboard manager as the type to remove inputTraits = self.textDocumentProxy UITextInputTraits keyboardType go = inputTraits.keyboardType to returnKeyType = inputTraits.returnKeyType   

}

this is my project but reformat and clarity of (Including error checking) without a lot of code. I did not even compile it since it's not equal to such a simple example, you probably would not want to ensure inputTraits.

I found it about that any extension API is not visible on the image faith values ​​good or visible, but you can also see it DidLoad ()

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -