iOS tableView自定义删除按钮
2017-02-14 14:52
519 查看
// 自定义左滑显示编辑按钮 - (NSArray<UITableViewRowAction*>*)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewRowAction *rowAction = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@" 删除 " handler:^(UITableViewRowAction * _Nonnull action, NSIndexPath * _Nonnull indexPath) { NSLog(@"删除"); }]; rowAction.backgroundColor = [UIColor yellowColor]; NSArray *arr = @[rowAction]; return arr; }
相关文章推荐
- iOS开发——UI进阶篇(四)tableView的全局刷新,局部刷新,左滑操作,左滑出现更多按钮,进入编辑模式,批量删除,自定义批量删除
- iOS开发学习之利用系统远程UITableView 自定义滑动删除按钮、增加自定义滑动按钮方法
- UITableViewCell上的删除按钮(tableView自带的和自定义的)
- ios Tableview 左右手势 显示 删除 按钮
- ios 设置tableview左滑删除按钮的相关属性
- ios 如何让TableView加入横向滑动出现删除按钮的功能
- IOS_修改TableView的删除按钮的文本
- ios TableView那些事(三十一)UITableViewController ios8 删除时添加多个按钮
- ios tableView 自定义cell上的按钮点击事件不好用
- ios tableview 删除按钮
- ios TableView那些事(三十一)UITableViewController ios8 删除时添加多个按钮
- ios 如何让TableView加入横向滑动出现删除按钮的功能
- IOS_修改TableView的删除按钮的文本
- IOS_修改TableView的删除按钮的文本
- 0819-TableView(tableVeiw控件的代理)(tableView单组 lol数据展示)(tableView-汽车品牌logo 右侧a-z)(KVC)(tableView - 添加删除按钮出现)(自定义代理delegate)(内存)
- (原创)iOS tableview系统左滑删除 左滑置顶 自定义左滑事件功能 输入框弹出
- IOS开发之TableView替换默认的checkmark为自定义图像
- Android自定义View带有删除按钮的EditText
- IOS开发之TableView替换默认的checkmark为自定义图像
- [ios] 自定义UIAlertView样式,实现可替换背景和按钮 【转】