Hello I have this issue where I have "shortcut keys" that I have added to a ViewController. When navigated to the ViewController I cannot use the "shortcut keys" right away. I first need to "press" anywhere on the screen to be able to use the shortcut.
I use this code:
- (void)viewDidLoad {
[super viewDidLoad];
UIKeyCommand* commandA = [UIKeyCommand keyCommandWithInput:@"a" modifierFlags:UIKeyModifierCommand action:@selector(handleCommand:)];
[self addKeyCommand:commandA];
}
- (void)handleCommand:(UIKeyCommand *)keyCommand {
// Hangup call.
[self btnIncomingAnswerPressed:NULL];
}
I am not sure why this happens, but I it would be really good if a user could use a shortcut key as soon as they navigate to the ViewControllor, instead of first have to press anywhere on the app.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Is there a way to alter WiFi Settings in Guided Access mode. Ive have tried the: NEHotspotConfigurationManager but it does not seem to work in Guided Access mode (Although No Error is given).
This post used similar solution but does not work either:
https://developer.apple.com/forums/thread/104351
Best regards
Simon Jakobsson