Apple's iPad Pro page talks about a new keyboard shortcut feature:
Shortcuts at your fingertips.
iOS 9 works seamlessly with the Smart Keyboard, adding a variety of useful QuickType features to your iPad Pro.
Time-saving Shortcuts
Use keyboard shortcuts to perform even more commands on your iPad Pro — like switching between apps or bringing up search with your Smart Keyboard. And interact with your apps using their own built-in custom shortcuts. Just press and hold a key like Command, Option, or Control to see shortcuts in any app.
I tried searching the iOS 9 and iOS 9.1 API pages and can't find anything about keyboard shortcuts.
How can I implement this feature in my app, or where can I find the documentation that talks about it?
It looks like most of this feature had already existed as of iOS 7, called UIKeyCommand.
The only thing that was added is the discoverabilityTitle, which is used to display the available command names on any iPad running iOS 9+. You can see this menu in the simulator by holding down the command key on any screen that provides keyboard shortcuts (e.g. the iOS home screen).
There's a nice write up on NSHipster about this, which includes these iOS 9 features.
Essentially you need to do the following:
keyCommands
method.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With