UITableView cell的选择删除,取消cell选中后的背景色
来源:互联网 发布:mac装虚拟机win7 编辑:程序博客网 时间:2024/04/28 01:40
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *TableSampleIdentifier =@"TravelDetailMessageTableViewCell";
BOOL registered = NO;
if(!registered)
{
UINib * nib = [UINibnibWithNibName:@"TravelDetailMessageTableViewCell"bundle:nil];
[tableViewregisterNib:nib forCellReuseIdentifier:TableSampleIdentifier];
registered =YES;
}
TravelDetailMessageTableViewCell *cell = [tableViewdequeueReusableCellWithIdentifier:
TableSampleIdentifier];
cell.delegate =self;
//设置取消cell的选中色
cell.selectionStyle =UITableViewCellSeparatorStyleNone;
return cell;
}
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
//设置cell编辑时的状态为删除状态
returnUITableViewCellEditingStyleDelete;
}
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
if (editingStyle ==UITableViewCellEditingStyleDelete)
{
//此处添加删除时要执行的操作
}
}
- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath
{
//设置编辑时的tip
return @"删除";
}
- UITableView cell的选择删除,取消cell选中后的背景色
- cell选中的背景色
- UITableView自定义cell更换选中的背景色
- UITableView取消选中的cell方法
- 设置 cell 的背景色,背景图 ,选中效果
- UItableVIew 的隐藏属性(隐藏换行线/取消cell选择时颜色选中)
- UITableView 删除特定的CELL
- UITableView 删除cell 的问题
- ios之UITableView批量选中cell并实现删除cell的简单方法
- Cell上的label背景色会在选中的时候透明
- UITableView 的Cell取消高亮状态
- UITableView取消某一个cell的分割线
- iOS Uitableview的cell的选中样式
- iOS Uitableview的cell的选中样式
- poi的cell前景色是背景色?
- iOS`UITableView`使用系统多选 全选自定义选中背景色 cell多选
- UItableView获取cell以及获取当前选中的cell
- 关闭UITableView cell的被选中效果
- malloc函数详解
- Fragment_学习1
- 打造android ORM框架opendroid(二)——自动创建数据库
- IDOC相关
- 关于使用Struts2使用result-dispatcher后,无法找到JSP内css、js路径的问题
- UITableView cell的选择删除,取消cell选中后的背景色
- Linux系统中使用 DD 命令测试 USB 和 SSD 硬盘的读写速度
- 创建datatable
- php实现自动发送邮件pear Mail
- 内联函数与宏
- coco2d 笔记
- 算法和数据结构就是编程的一个重要部分,你若失掉了算法和数据结构,你就把一切都失掉了
- VS2010 error RC2170: bitmap file xxx.png is not in 3.00 format
- ubuntu 12.04搭建tftp服务器的安装、设置、调试