2011-02-09 5 views

답변

10

targetIndexPathForMoveFromRowAtIndexPath의 대리자 메서드를 구현 :

- (NSIndexPath *)tableView:(UITableView *)tableView 
    targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexPath 
    toProposedIndexPath:(NSIndexPath *)proposedDestinationIndexPath 
{ 
    if (proposedDestinationIndexPath.section != sourceIndexPath.section) 
    { 
     //keep cell where it was... 
     return sourceIndexPath; 
    } 

    //ok to move cell to proposed path... 
    return proposedDestinationIndexPath; 
} 
+1

이 날 도와 않습니다를. 고맙습니다. – AechoLiu

관련 문제