作者issuemylove (NotLove)
看板MacDev
標題[問題] UITableView cell swipe狀態下復原
時間Mon Nov 23 16:41:50 2015
想請問各位大大
tableView 經過某些設定後把 cell 往左滑會出現 [刪除] 的選項
可否透過程式碼將該cell從上述的狀態下回復成一般的樣子嗎?
目前是透過 [tableView reloadData] 來達成
但是很不順 沒有animation QQ
是否有比較正常的作法呢? 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 180.217.12.198
※ 文章網址: https://www.ptt.cc/bbs/MacDev/M.1448268112.A.E1A.html
※ 編輯: issuemylove (180.217.12.198), 11/23/2015 16:44:04
→ otaku5566: 你是指把swipe->delete 這功能disable嗎 11/23 18:16
不是QQ
→ cryinglove: TableView.editing = false 11/23 22:38
→ cryinglove: 如果你有用willDisplayCell 的話 11/23 22:44
→ cryinglove: reloadData會有動畫的 11/23 22:44
好的 試試看,謝謝兩位大大
※ 編輯: issuemylove (1.171.181.40), 11/24/2015 17:54:38
→ hearther: Batch update+uitableview 12/02 01:58