如何禁用单元UserInteraction
格UITableview
但不在该单元格上的自定义按钮中..
我正在使用创建一个按钮:
UIButton *dayButton = [UIButton buttonWithType:UIButtonTypeCustom];
[dayButton setFrame:CGRectMake(201, 0, 30, 35)];
[dayButton addTarget:self action:@selector(selectDayView) forControlEvents:UIControlEventTouchUpInside];
[dayButton setBackgroundImage:[UIImage imageNamed:@"86-camera.png"] forState:UIControlStateNormal];
dayButton.userInteractionEnabled=YES;
[cell addSubview:dayButton];
然后我设置
cell.userInteractionEnabled=NO;
我怎么能得到dayButtonAction
?