以下代码在 a 中工作UIViewController,但在我的类中,UITableViewCell它给出了错误
使用未解析的标识符“存在”。
代码是一个动作:
@IBAction func linkAction(_ sender: Any) {
let linkString = self.linkText.text
if let requestUrl = URL(string: linkString!) {
let safariVC = SFSafariViewController(url: requestUrl)
present(safariVC, animated: true)
}
}
Run Code Online (Sandbox Code Playgroud)
有解决办法吗?