xcode – iphone – objective-c
Hi;

if you want to know my way of deleting selected rows from table view so maybe you choose the easiest way to delete selected rows or cells from UITableView :

firstly , my preferred way is use [[ UITableView : indexPathsForSelectedRows ]count] to get the count of selected rows only , and [ UITableView : indexPathForSelectedRow ] to get first selected row ” to delete ” , so if you have an array of values to list on tableView , you can do like below :

 

and on [ tableView : commitEditingStyle : forRowAtIndexPath ] from UITableViewDataSource Protocol Reference under UITableViewCellEditingStyleDelete editing style do as below :