Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift 敏捷的要使用协议/委托从UITableViewController类访问当前func到UITableviewCell类,但发现无_Swift_Uitableview_Delegates_Protocols_Uialertview - Fatal编程技术网

Swift 敏捷的要使用协议/委托从UITableViewController类访问当前func到UITableviewCell类,但发现无

Swift 敏捷的要使用协议/委托从UITableViewController类访问当前func到UITableviewCell类,但发现无,swift,uitableview,delegates,protocols,uialertview,Swift,Uitableview,Delegates,Protocols,Uialertview,我想使用protocol/delegate方法从UITableViewController类访问UITableViewCell中的当前(viewControllerToPresent:UIViewControllerUIViewController) 我让委托获取当前func,但当应用程序运行时,我得到控制台错误:致命错误:在展开可选函数时发现nil。 这是到目前为止的代码 UITableViewCell UITableViewController

我想使用protocol/delegate方法从UITableViewController类访问UITableViewCell中的当前(viewControllerToPresent:UIViewControllerUIViewController)

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

UITableViewCell

UITableViewController