xib的
//不使用这种
– (IBAction)button:(UIButton *)sender;
//使用这种
@property (weak, nonatomic) IBOutlet UIButton *button;
在cell里面直接调用
[cell.button addTarget:self action:@selector(pressBtn1:) forControlEvents:UIControlEventTouchUpInside];
xib的
//不使用这种
– (IBAction)button:(UIButton *)sender;
//使用这种
@property (weak, nonatomic) IBOutlet UIButton *button;
在cell里面直接调用
[cell.button addTarget:self action:@selector(pressBtn1:) forControlEvents:UIControlEventTouchUpInside];
该资源仅限VIP专享下载