您应该
protocol用来将动作传回
tableViewController
1)
protocol在您的单元格班级中创建一个
2)使
button动作成为您的
protocol功能
3)将您
cell's protocol在
tableViewController通过
cell.delegate = self
4)实施
cell's protocol并在其中添加代码
let vc = ViewController()self.presentViewController(vc, animated: true, completion: nil)



