ios8 - iOS - 来自 iOS 8.3 测试版键盘扩展的 OpenURL

标签 ios8 deep-linking ios8-extension ios-keyboard-extension

在我的项目中,我使用 WebView 从键盘扩展打开了一个容器应用程序。
它工作正常,直到我尝试在 iOS 8.3 beta 上运行它.. 在这个新的 iOS 版本上它只是做 没什么 .

我尝试使用 NSExtensionContext 和 WKWebView - 也没有任何成功。

有人知道如何在 iOS8.3 上的键盘扩展上打开 URL 吗?

谢谢

最佳答案

你能试试这个片段吗?

-(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]];
        }
    }
}

引用自
http://yusukekuni.hatenablog.com/entry/2015/05/01/144050

关于ios8 - iOS - 来自 iOS 8.3 测试版键盘扩展的 OpenURL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29120598/

相关文章:

iOS 企业版 : What should I change or keep the same so an updated app installs over the older version?

Android 应用与 Github 页面的链接

electron - 在 Electron 应用程序中实现延迟深度链接

ios - 在深层链接的情况下,以编程方式包含应用程序的反向链接到以前的应用程序

xcode - 如何在 IOS8 键盘扩展上使用自动布局

ios - UIPopoverPresentationController 不调用 UIAdaptivePresentationControllerDelegate 方法

ios - UITableViewCell 的字幕不会更新

ios - RootView 快速导航

objective-c - CustomKeyBoardExtension 中的当前文本选择

keyboard - iOS 8 : Keyboard Extension. 添加弹出键的问题