iOS delete a tableview row

前端 未结 6 1195
北荒
北荒 2020-12-03 23:14

I had my app working fine on iOS 6. With the upgrade I stopped being able to delete rows from my UITableView.

I\'ve a button in my prototype cell.

6条回答
  •  长情又很酷
    2020-12-04 00:10

    I quess the problem is you're not reloading data again thus it's staying in cache memory

    You can try to reload data with [tableView reloadData]; this method to the below of [_tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationRight]; this code line in your second solution.

提交回复
热议问题