在我的应用程序中,我重新加载我的TableView([tablViewreloadData];)从TableView中删除行然后canEditRowAtIndexPath方法总是调用(上一节)总行数。例如:如果我的TableView上有5行,那么我会从tableView中删除1行。删除后,我重新加载我的TableView([tablViewreloadData])但是canEditRowAtIndexPath方法调用了5次而不是4次??所以我总是得到FollowingError:Terminatingappduetouncaughtexception'NSRangeException'