迅速想要使用协议/委托从 UITableViewController 类访问当前 func 到 UITableviewCell 类,但发现 nil

问题描述

我想使用协议/委托方法从 UITableViewController 类访问 UITableViewCell 中的present(viewControllerToPresent: UIViewControllerUIViewController)。

我得到了获取当前 func 的委托,但是当应用程序运行时,我收到控制台错误:致命错误:在解开可选项时发现 nil。 这是到目前为止的代码...

UITableViewCell

enter image description here

UITableViewController

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)