I have created an animation. This animation is a button. But when I touch this button, nothing appears.
I have activated the option :
UIViewAnimationOptionAllowUserInteraction
This is my animation's code :
[UIView animateWithDuration:1.5
                            delay:0
                            options:(UIViewAnimationOptionAllowUserInteraction)
        animations:^{
            btnRock.center = CGPointMake(btnRock.center.x - 450, btnRock.center.y - positionY);
        }completion:^(BOOL finished){
                btnRock.center = CGPointMake(btnRock.center.x + 450, btnRock.center.y + positionY+ positionYBase);
            [self play];
        }];
And this is my button's code :
-(IBAction)touchRock:(id)sender{
    cptScore++;
    score.text = [[NSString alloc] initWithFormat: @"%.d", cptScore];
}