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