美文网首页
iOS ShareExtension 跳转至Host App

iOS ShareExtension 跳转至Host App

作者: d4d5907268a9 | 来源:发表于2024-09-23 16:56 被阅读0次
    @objc func openURL(_ url: URL) -> Bool {
            var responder: UIResponder? = self
            while responder != nil {
                if let application = responder as? UIApplication {
                    return application.perform(#selector(openURL(_:)), with: url) != nil
                }
                responder = responder?.next
            }
            return false
        }
        
    

    相关文章

      网友评论

          本文标题:iOS ShareExtension 跳转至Host App

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