点击INUIHostedViewControllingViewController后,有没有办法向应用程序发送一些参数/URL?例如在Widget扩展中有:self.extensionContext?.open(cardURL,completionHandler:nil) 最佳答案 似乎某些扩展类型在使用extensionContext时受到更多限制。我在键盘扩展上遇到了同样的问题。这可能有点hacky,但下面的代码对我有用。funcopenUrl(url:URL?){letselector=sel_registerName("op