有一些問題,我不明白。我在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就是這樣的例子。我剛剛編輯過問題。 –
你在哪裏得到這些錯誤? –