小编Arg*_*oto的帖子

无法在 UITableViewCell 中呈现

以下代码在 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)

有解决办法吗?

xcode uitableview ios presentviewcontroller swift

1
推荐指数
1
解决办法
1575
查看次数

标签 统计

ios ×1

presentviewcontroller ×1

swift ×1

uitableview ×1

xcode ×1