一个最简单的cell按钮点击回调

在cell.h定义
@property(nonatomic,strong)void(^pushType)(NSInteger);
在cell.m按钮点击时  _pushType(1);(举例)
 
 
在用到cell的tableView中
cell.pushType=^(NSInteger index){
       if(index==1){
        ...
       }
    };
原文地址:https://www.cnblogs.com/wzdevelop/p/7410200.html