美文网首页
SLComposeServiceViewController跳转

SLComposeServiceViewController跳转

作者: lczalh | 来源:发表于2020-07-15 18:04 被阅读0次
    let scheme = "ReadShadow://"
    let url: URL = URL(string: scheme)!
    let context = NSExtensionContext()
    context.open(url, completionHandler: nil)
    var responder = self as UIResponder?
    let selectorOpenURL = sel_registerName("openURL:")
    while (responder != nil) {
          if responder!.responds(to: selectorOpenURL) {
                responder!.perform(selectorOpenURL, with: url)
                break
          }
          responder = responder?.next
      }
    

    相关文章

      网友评论

          本文标题:SLComposeServiceViewController跳转

          本文链接:https://www.haomeiwen.com/subject/cmujhktx.html