Skip to content

JazysYu/JZTableViewRowAction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published