UITableView的frame改变做动画时,如何禁用UITableViewCell内置的动画效果

-(SelfHelpReportChatRoomTableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

    static NSString *indentifier=@"chat_room_cell";

    SelfHelpReportChatRoomTableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:indentifier];

    if (cell==nil) {

        cell=[[SelfHelpReportChatRoomTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:indentifier];

        cell.delegate = self;

    }else{

        [cell clear];

    }

    cell.indexPath=indexPath;

    cell.selectionStyle=UITableViewCellSelectionStyleNone;

    [UIView performWithoutAnimation:^{

        [cell loadData:_dataArray[indexPath.row]];

    }];

    

    return cell;

}

posted @ 2017-06-01 10:57  喜狼狼  阅读(1153)  评论(0编辑  收藏  举报