非常非常基础。我不明白。当表格加载和 Edit 被切换时canEdit
被调用,但不是canMove
. 我究竟做错了什么?
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
NSLog(@"canEdit=%d", indexPath.row);
// output is as expected, "canEdit" for each row
return (indexPath.section == 1) ? YES : NO;
}
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
{
NSLog(@"canMove=%d", indexPath.row);
// nothing. No output
return (indexPath.section == 1) ? YES : NO;
}
谢谢!