UITableView 滑动删除
2012-10-31 09:32
148 查看
//先要设Cell可编辑 -(BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { NSLog(@"xxxxfffwefw"); return YES; } //修改编辑按钮文字 - (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath { return @"删除"; } - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { /* if(indexPath.row ==0) { [tableView setEditing:YES animated:YES]; //这个是整体出现 } */ return UITableViewCellEditingStyleDelete; } //进入编辑模式,按下出现的编辑按钮后 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { NSLog(@"touchIIddddd"); /* if(indexPath ==0) { [tableView setEditing:NO animated:YES]; } */ }
相关文章推荐
- UITableView实现Cell的滑动删除
- UITableView滑动删除
- ios UITableView实现单击提示,滑动删除,多选行等操作
- UITableView 实现滑动删除
- UITableView小技巧--实现cell向左滑动删除,编辑等功能
- UITableView滑动删除
- UITableView 单元格自定义个别不能滑动删除
- (iOS)UITableView只允许部分cell支持滑动删除
- iOS开发学习之利用系统远程UITableView 自定义滑动删除按钮、增加自定义滑动按钮方法
- IOS7 UITableView一行滑动删除后 被删除行的下一行的点击事件将被忽略解决办法
- [iOS]UITableView滑动删除按钮样式改变
- IOS学习之路六(UITableView滑动删除指定行)
- UITableView滑动删除
- iOS中uitableview滑动删除添加按钮
- iOS UITableView(十三) tableView经常用的代理总结和滑动删除
- UITableView滑动删除表格行(UITableViewCell)
- iOS 开发 UItableView中滑动删除 cell
- [IOS]UITableView实现Cell的滑动删除
- UITableView左右滑动cell无法显示“删除”按钮的原因分析
- UITableView左右滑动删除常见问题