On my project I used a WebView to open a Container App from Keyboard extension. It worked ok until I tried to run it on iOS 8.3 beta.. On this new iOS version it just do nothing.
I tried to use NSExtensionContext and WKWebView - without any success too.
Does someone know how to openURL on keyboard extension on iOS8.3?
Thanks
Can you try this snippet?
-(void)openURL:(NSString*)url{
UIResponder* responder = self;
while ((responder = [responder nextResponder]) != nil) {
NSLog(@"responder = %@", responder);
if ([responder respondsToSelector:@selector(openURL:)] == YES) {
[responder performSelector:@selector(openURL:)
withObject:[NSURL URLWithString:url]];
}
}
}
Cited from http://yusukekuni.hatenablog.com/entry/2015/05/01/144050
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