I have my array:
self.colorNames = [[NSArray alloc] initWithObjects:@\"Red\", @\"Green\", @\"Blue\", @\"Indigo\", @\"Violet\", nil];
I\'ve
Swift Version:
func tableView(tableView: UITableView, commitEditingStyle editingStyle: UITableViewCellEditingStyle, forRowAtIndexPath indexPath: NSIndexPath) { if editingStyle == UITableViewCellEditingStyle.Delete { dataArray?.removeAtIndex(indexPath.row) tableview.reloadData() } }