Up vote 0 down vote favorite share g+ share fb share tw.
I'm having a problem with my deleting of cells in the tableview , my program simply crashes when I press de delete button. Here is my code for it : - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { // Delete the managed object at the given index path sect = listArray objectAtIndex:indexPath. Row; sect removeObjectAtIndex:indexPath.
Row; // Update Event objects array and table view listArray removeObjectAtIndex:indexPath. Row; tableView deleteRowsAtIndexPaths:NSArray arrayWithObject:indexPath withRowAnimation:YES; tableView. Editing = YES; } } iphone tableview link|improve this question asked Sep 8 '11 at 2:12John2113 40% accept rate.
– 0x8badf00d Sep 8 '11 at 2:18 Post the output of your crash log. – WrightsCS Sep 8 '11 at 2:18 thx , problem solved – John2 Sep 8 '11 at 2:49.
Remove the following completely: sect = listArray objectAtIndex:indexPath. Row; sect removeObjectAtIndex:indexPath. Row; and tableView deleteRowsAtIndexPaths:NSArray arrayWithObject:indexPath withRowAnimation:YES; Just call listArray removeObjectAtIndex:indexPath.
Row; then call reloadData to refresh your UITableView.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.