Possible Duplicate:
UIButton can’t be touched while animated with UIView animateWithDuration
I want to animate a UIButton from left to right, while its animating if user touch the button I should be sent an event, but when the button animating it isn't send event. Please help me, my project is stoped on this point. Some developer suggested me to use
[UIView animateWithDuration:3
delay:0
options:UIViewAnimationOptionAllowUserInteraction
animations:^{
myBtn.frame=CGRectMake(0,
100,
myBtn.frame.size.width,
myBtn.frame.size.height);
}
completion:^(BOOL finished) { NSLog(@"Animation Completed!"); }];
this method but it is not working too, please tell what should I do???