Just starting out with core graphics. Playing with a simple button and label. I want this label to rotate 180 degrees on each click of the button. It only animates on the first click (the console does write "DONE" on each click, however)
- (IBAction)btnTest:(id)sender
{
[UIView animateWithDuration:1 delay:0 options:UIViewAnimationOptionCurveEaseIn animations:^{
lblTest.layer.transform = CATransform3DMakeRotation(M_PI,0.0,1.0,0.0);
}completion:^(BOOL finished) {
if(finished)
NSLog(@"DONE");
}];
}