2
我想为自定义单元格“删除附件”。 如何添加删除附件到自定义单元格?
我overrided canEditRowAtIndexPath
方法:这里
// Override to support conditional editing of the table view.
override func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
// Return false if you do not want the specified item to be editable.
return true
}
套装属性(但是,在删除附件??):
但是,这并不为我工作。
它只在编辑模式下出现。 – tktsubota
如何打开编辑模式?我认为'''canEditRowAtIndexPath'''这个方法可以做到这一点吗? – Arti