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;
}
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;
}
相关文章推荐
- Win10如何禁用系统视觉动画效果以兼容较老机器
- 实时的效果如何与渲染的动画相近
- VC如何作出有动画效果的托盘图标
- 如何编写Silverlight动画效果控件
- (转载)如何实现ipad中googlemap的callout和Popover的动画效果
- 使用blend制作地图区域改变颜色动画效果
- 如何在FLASH中实现眨眼睛的动画效果
- JavaScript动画效果是如何实现的
- Android的一段常用动画效果代码(如何让点击的图片控件加速飞入到指定位置)
- Android动画Animation之Frame实现类似电影的动画效果
- Blend中如何自定义控件模版,实现“vista button动画效果”(附图)
- wince如何去掉APP窗口的动画显示效果
- 如何实现Activity退出到桌面时的动画效果
- 如何取消应用程序弹出的动画效果
- 如何动态改变Frame的大小?
- 如何给PowerPoint中的SmartArt对象添加动画效果
- 如何取消应用程序弹出的动画效果
- 如何设置对话框的动画效果
- winfrom 树形控件如何实现鼠标经过节点时光标颜色改变效果
- 在frame结构的页面中,如何实现用struts2跳转时,只改变页面中的某个frame