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

在cell.h定义
@property(nonatomic,strong)void(^pushType)(NSInteger);
在cell.m按钮点击时  _pushType(1);(举例)
 
 
在用到cell的tableView中
cell.pushType=^(NSInteger index){
       if(index==1){
        ...
       }
    };
posted @ 2017-08-22 10:07  wzdevelop  阅读(372)  评论(0)    收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示