//返回的方法里面开启用户交互
- (void)changeFirBtnLabel:(NSNotification *)infor {
[self.firBtn setTitle:infor.object forState:UIControlStateNormal];
[self.firBtn setTitleColor:[self colorWithValue:kNumColorLight] forState:UIControlStateNormal];
self.firBtn.userInteractionEnabled= YES;
NSArray * firArr = self.dataArrayFirModel;
for (WZSelectFirDisModel * model in firArr) {
if ([model.ci3_name isEqualToString:infor.object]) {
self.numLabel.text = [NSString stringWithFormat:@"%@",model.ci2_id];
NSLog(@"%@------%@",self.numLabel.text, model.ci2_id);
}
}
}
//之前的取消利用时间延迟的方法还是会存在一些问题 所以简单暴力的方式诞生了
- (void)addDisease:(UIButton*)didClickBtn{
//取消之前该按钮的点击事件
// [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(pushSelTVC:) object:didClickBtn];
self.firBtn.userInteractionEnabled = NO;
//0.5s之后做我们要执行的事情
[self performSelector:@selector(pushSelTVC:) withObject:didClickBtn afterDelay:0.0f];
}