有一些问题,我不明白。我在xib文件中有单个静态单元,我想从那个单元的细节披露附件中继续到其他视图控制器。如何从xib文件详细披露静态单元格创建segue
猜猜,我要使用这个方法:
func tableView(_ tableView: UITableView, accessoryButtonTappedForRowWith indexPath: IndexPath) {
self.performSegue(withIdentifier: "SegueID", sender: self) // #ERROR
}
但我有一个错误:
Could not cast value of type 'Lists.ListViewController' (0x104c0e7b8) to 'UITableViewCell' (0x106875bf8).
我怎样才能正确地创建这个SEGUE?
为什么你想让发件人成为**披露按钮类**? –
@NiravD就是这样的例子。我刚刚编辑过问题。 –
你在哪里得到这些错误? –