I'm currently creating an iOS 8 custom keyboard extension, and I'm looking for a way to determine when the users switch to another input, in order to change my layout.
For example, when a users selects a UITextField
with type UIKeyboardTypeEmailAddress
I intend to present a custom keyboard, and when the user selects another UITextField
with type UIKeyboardTypeDecimalPad
, I want to notice it, and update my keyboard's layout. How does one get notified when the keyboard type changes in order to update the keyboard layout?