2011-05-03 53 views

回答

0

設置的UITableView的編輯屬性設置爲true ..

tableView.editing=YES; 
0

刪除,這個工作對我來說:

tableView.cells()[cellName].switches()[0].setValue(true); 
    tableView.cells()[cellName].buttons()[0].tap(); 

所以我假定爲 「+」 你剛需要在索引0處點擊按鈕:

tableView.cells()[cellName].buttons()[0].tap(); 

既然您可以使用工具來記錄您的操作,這可能是最簡單的方法來獲得適合你的正確語法。

相關問題