• Stars
    star
    376
  • Rank 113,810 (Top 3 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created about 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Using UITableViewRowAction on iOS >= 5.0

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