iOS开发笔记--添加cell动画

            [_mainTable beginUpdates];
            [_mainTable insertRowsAtIndexPaths:indexPath withRowAnimation:UITableViewRowAnimationTop];
            [_mainTable endUpdates];
                    [_mainTable beginUpdates];
                    [_mainTable deleteRowsAtIndexPaths:selectedIndexPath withRowAnimation:UITableViewRowAnimationTop];
                    [_mainTable endUpdates];

你可能感兴趣的:(iOS)