テーブルビューでセルの順序を変更したい
次のコードを使用しています
-(void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
{
[tableView moveRowAtIndexPath:path1 toIndexPath:path2];
}
ここpath1
で、ユーザーが選択した行のインデックスパス ユーザーがそのセルをドロップした行のインデックスパスを見つけたいので、どうすればtoIndexPath(path2)を見つけることができますか。