How to add bluetooth keypad support in iOS apps
Using (NSArray *)keyCommands
, I can get key events for all alphanumeric characters, symbols, etc. I tried to subclass UIApplication
and override(NSArray *)keyCommands method
-(NSArray *)keyCommands{
UIKeyCommand *cmdF1 = [UIKeyCommand keyCommandWithInput:[NSString stringWithFormat:@"%c",asciicode] modifierFlags:0 action:@selector(handleShortcut:)];
........
return @[cmdF1,cmdF2....];
}
In my application, I need F1-F12 Key keys, as well as Home, End, PageUp keys in the application. Is there any public api available for this? Can we connect a keyboard using other blue tooth services?
+3
source to share
No one has answered this question yet
Check out similar questions: