项目
在 GitHub 查看
JazysYu/JZTableViewRowAction
关于
Using UITableViewRowAction on iOS >= 5.0
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文JZTableViewRowAction
Using UITableViewRowAction on iOS >= 5.0, you can set an image or enable status for UITableViewRowAction.
Overview

Usage
- Implement API in UITableViewDelegate:
- (nullable NSArray<UITableViewRowAction *> *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath
- Create UITableViewRowAction with an image:
UITableViewRowAction *action = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault image:"your image" handler:rowActionHandler];
```
* Set enable status:
```objc
action.enabled = false;
Installation
Drag all source files under floder JZTableViewRowAction to your project.
UITableViewRowAction+JZExtension.h UITableViewRowAction+JZExtension.m
UITableViewCell+JZExtension.m UITableViewRowAction.m
欢迎微博@J_雨与我交流
探索相关项目
加载中…