UITableView 中实现 滑动一个cell 显示一个按钮,并且做相关业务处理
来源:互联网 发布:怎么看淘宝的实名认证 编辑:程序博客网 时间:2024/06/06 01:29
//当在Cell上滑动时会调用此函数-(void) tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{ NSLog(@"点击了收藏,开始收藏功能"); NSUInteger row = [indexPath row]; NSDictionary * rowData = [itemArray objectAtIndex:row]; NSLog(@"准备收藏的路段名称是:%@", [[NSString alloc]initWithFormat:@"%@",[rowData objectForKey:@"road_name"] ]);}/*此时删除按钮为Delete,如果想显示为“删除” 中文的话,则需要实现 UITableViewDelegate中的- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath方法*/- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath{ return @"收藏";}
相关 文章 http://code.eoe.cn/476.html
- UITableView 中实现 滑动一个cell 显示一个按钮,并且做相关业务处理
- 实现cell显示一个删除按钮
- 一个UITableView两种Cell的实现
- UITableView 每次滑动一个cell的高度的距离
- UItableView中滑动删除 cell
- js中做一个button按钮,页面开始五秒钟之后才可进行点击,并且要求按钮上实时显示当前所剩秒数
- iOS:使UITableView一直显示最后一个Cell
- UITableView左右滑动cell无法显示“删除”按钮的原因分析
- UiTableView 默认选中一个cell
- UITableView默认选中一个Cell
- 刷新/插入UITableView一个cell
- OPENCV图像处理基础(四)用滑动条做一个按钮
- UITableView实现Cell的滑动删除
- [IOS]UITableView实现Cell的滑动删除
- UITableView实现Cell的滑动删除
- UITableView实现Cell的滑动删除
- UITableView,在cell中添加按钮
- UITableView,在cell中添加按钮
- Thrift入门
- 如何获取未安装的APK的签名
- Centos6.3下编译安装php5.4.14
- 线程池的原理及实现
- 最快线程间数据交换算法,有效避免锁竞争 -- TwoQueues
- UITableView 中实现 滑动一个cell 显示一个按钮,并且做相关业务处理
- XML基础介绍
- 国际比较流行的网页Web设计流程
- qt实现无标题窗口移动范围
- jquery统计图标的插件
- JSP自定义标签开发入门(二)
- radius
- ffmpeg/avconv转码相关笔记
- visio做类图