Skip to content

githubze/panCell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

panCell

TableViewCell自定义左滑菜单 1、创建 cell 继承 PanTableViewCell
2、添加PanTableViewCellDelegate协议方法 3、实现协议方法 #import "PanCellButton.h"

  • (NSArray<PanCellButton *> *)panTableViewCell:(PanTableViewCell *)cell tableView:(UITableView *)tableView rightPanCellButtonsAtIndexPath:(NSIndexPath *)indexPath{

    PanCellButton *removeFollowUserButton = [[PanCellButton alloc] initWithTitle:nil image:[UIImage imageNamed:@"UserView_follow1"] onClickCallback:^(UIButton *panButton) { [self CancelFollowAction]; }];

    PanCellButton *hiddenUserButton = [[PanCellButton alloc] initWithTitle:nil image:[UIImage imageNamed:@"UserView_follow2"] onClickCallback:^(UIButton *panButton) { [self ShieldingUser]; }];

    return @[hiddenUserButton,removeFollowUserButton]; }

About

TableViewCell自定义左滑菜单

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published