iPhone/iPad app using keyboard shortcuts? -
With the availability of keyboards for the iPad and iPhone, it is now possible to add keyboard shortcuts to the app.
Is it possible to do this in an app? What are the related APIs?
Although this question is quite old, Apple has added support for keyboard-specific shortcuts in iOS 7. See the UIKit framework for special support for hardware keyboard shortcuts. There are high level steps for us:
-  Use the static 
key Medium Input: Modifier Flex: Action:to make the code a codeUIKeyCommandUIKeyCommandfor the specified key with the Modifier on the Note that any keyboard shortcut (such as Command-C duplication) that will be handled by the system will not work. You will also pass an action selector which will be called during the use of keyboard shortcuts -  Associate your newly created 
UIKeyCommandwith Responder Objects by returning from the Responder objectKeyCamproperty - When the key is pressed, your selector will be called.
 
Comments
Post a Comment