Iphone 绘制UITableviewcell时的动画

Iphone 绘制UITableviewcell时的动画,iphone,objective-c,ios,xcode,Iphone,Objective C,Ios,Xcode,我有一个完整的UITableView,包括删除、排序、插入等功能 当单元格添加到UITableView时,我如何设置淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡对于您添加的每个对象 可能是这样的: - (void)addContentFromArray:(NSA

我有一个完整的
UITableView
,包括删除、排序、插入等功能


当单元格添加到UITableView时,我如何设置淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡入淡对于您添加的每个对象

可能是这样的:

- (void)addContentFromArray:(NSArray *)array {
    [self.tableView beginUpdates];
    NSMutableArray *indexPaths = [NSMutableArray arrayWithCapacity:[array count]];
    for (id object in array) {
        NSIndexPath *newIndexPath = [NSIndexPath indexPathForRow:[self.dataSource count] inSection:0];
        [self.dataSource addObject:object];
    }
    [self.tableView insertRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationAutomatic];
    [self.tableView endUpdates];
}
我目前正在使用
-(NSInteger)tableView:(UITableView*)tableView numberofrowsinssection:(NSInteger)section{return[array count];}
-(UITableView cell*)tableView:(UITableView*)tableView cell for rowatinexpath:(NSIndexPath*)indexPath{return cell;}