0

Can anyone offer assistance with adding a delete button to a tableview in xcode? I can create the button but cannot get it to delete anything in the table. I'm using the default code that comes with the Master Detail Application but have changed the content of the table using an NSObject.

4

1 回答 1

1

这应该是编辑按钮的默认行为。

self.navigationItem.leftBarButtonItem = self.editButtonItem;

这将允许您在按下列表后单击并删除列表中的任何项目。

除非我误解了您如何使用表格项目列表。

于 2013-03-03T21:48:50.723 回答