0
我实现了这个方法来制作Flash按钮,但是按下按钮的按钮停止工作。隐藏UIButton图片
-(void)imageAnimation:(UIButton *)imagen{
[UIView animateWithDuration:.5 animations:^{
imagen.alpha = 1.0;
} completion:^(BOOL finished){
[UIView animateWithDuration:.5 delay:0.5 options:0 animations:^{
imagen.alpha = 0.0;
} completion:^(BOOL finished){
[self imageAnimation:imagen];
}];
}];
}
你知道,我可以做,使图像闪烁按钮,但该按钮始终是积极和明显的触摸行之有效?
您是否在将alpha设置为0之后尝试过'[imagen setUserInteractionEnabled:YES]'?我确信有更好的方法来做你想做的事,但这可能在短期内奏效。 – Putz1103
如果你已经尝试了它,并且一开始没有识别到触摸,我试图识别安静,脱气触摸按钮,并且在尝试了很多次后,继续发生这种情况,只需按下alfinal – kinkiyero