Previously, for iOS 9, the most reliable method for determining whether an external keyboard is connected is to listen to UIKeyboardWillShowNotification and create a text field by the first responder, as described in this question . The notification will be triggered when using the virtual keyboard, but will not be triggered when using the external keyboard.
However, this behavior has now changed from iOS 9. UIKeyboardWillShowNotification also works when an external keyboard is connected, as a new keyboard toolbar is now displayed.
You can still determine the height of the keyboard and decide whether to display a smaller toolbar or a larger virtual keyboard. However, this method is not reliable, since the height of the keyboard has changed between different beta versions and cannot be considered unchanged over time.
Is there a more reliable method that can be used with iOS 9?
ios objective-c ios9 keyboard
Sarah Elan Aug 13 '15 at 15:00 2015-08-13 15:00
source share