I have a tableview of items and when i click one row, I use uiactionsheet with 3 button: edit, remove and cancel. When I click button edit, I will open a modal view, so how can I do this ? what is the code to delete tablerow ?
If you want to delete a row from a UITableView
, use the method named deleteRowsAtIndexPaths:withRowAnimation:
. You can find all the details on the UITableView Class Reference page.
Also don't forget to remove the corresponding item from your model!