JazysYu / JZTableViewRowAction

Using UITableViewRowAction on iOS >= 5.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JZTableViewRowAction

Using UITableViewRowAction on iOS >= 5.0, you can set an image or enable status for UITableViewRowAction.

Overview

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:
	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_雨与我交流

About

Using UITableViewRowAction on iOS >= 5.0

License:MIT License


Languages

Language:Objective-C 100.0%