[英]How to show tableview cell edit view when tap the cell?
我不知道你用什么刷卡。 但是,如果您想在用戶點擊單元格時處理某些操作,則應使用didSelectRowAtIndexPath函數。 例如;
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
print("Tapped")
}
在didselect委托方法上使用此代碼,我認為它會對您有所幫助。
self.tableView.editing = true
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.