UIButton Transition Curl Up problem

Posted by Neurofluxation on Stack Overflow See other posts from Stack Overflow or by Neurofluxation
Published on 2010-03-16T10:55:53Z Indexed on 2010/03/16 10:56 UTC
Read the original article Hit count: 269

Hello again SO peeps!

Basically, I am trying to UIViewAnimationTransitionCurlUp a UIButton. The animation works perfectly but the button stays there.

i.e. The button curls up, but there is another instance of the button still underneath.

My code as follows:

[UIButton beginAnimations:nil context:nil];
[UIButton setAnimationDuration:0.5];
[UIButton setAnimationBeginsFromCurrentState:YES];
[UIButton setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[UIButton commitAnimations];

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c