UIButton no se puede tocar mientras está animado con UIView animateWithDuration
Tengo el siguiente código
[UIView animateWithDuration:0.3
delay:0.0
options:UIViewAnimationCurveEaseOut | UIViewAnimationOptionAllowUserInteraction
animations:^{
CGRect r = [btn frame];
r.origin.y -= 40;
[btn setFrame: r];
}
completion:^(BOOL done){
if(done){
[UIView animateWithDuration:0.3
delay:1
options:UIViewAnimationOptionCurveEaseIn | UIViewAnimationOptionAllowUserInteraction
animations:^{
CGRect r = [btn frame];
r.origin.y += 40;
[btn setFrame: r];
}
completion:^(BOOL done){if(done) zombiePopping = 0; }];
}
}];
El problema es que parece que el botón no responde a los toques mientras está animado, aunque estoy usandoUIViewAnimationOptionAllowInteraction
, lo cual es un poco raro para mí.
Tal vez esto se haga con Core Animation para trabajar? y si es así, ¿cómo lo haría?