SLComposeServiceViewController跳转

2020-07-15  本文已影响0人  lczalh
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
  }
上一篇下一篇

猜你喜欢

热点阅读