2018年1月12日 星期五

在moveRowAtIndexPath動畫之後加入callback

[CATransaction begin];
    [CATransaction setCompletionBlock: ^{
        // Code to be executed upon completion
        [self connectPrinterWithDeviceInfo:deviceInfo];
    }];
    [tableView beginUpdates];
    [tableView moveRowAtIndexPath:indexPath toIndexPath:newIndexPath];
    [tableView endUpdates];
    [CATransaction commit];

沒有留言:

張貼留言