views:

35

answers:

2

I have a UITableView, when a cell is taped i want to delete it automatically (no editing mode).

When it is tapped i can delete that object/data in the dataSource, but then how can i update the TableView, or refresh it so it so it shows the data in the dataSource after i change that data.

Thanks very much for any ideas:)

+2  A: 

then you can just do it simply: [self.tableView reloadData];

vodkhang
+2  A: 

You probably want to use the deleteRowsAtIndexPaths:withRowAnimation: method as it's more efficient than reloadData and allows you to animate the deletion.

alexantd