您的位置:首页 > 产品设计 > UI/UE

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

2017-06-01 10:57 573 查看
-(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;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: