I’ve previously posted something about Core Animation which was sort of incorrect. I stated that a layer’s delegate must be set in order to have a working animation. Well of course I wasn’t correct. Core Animation requires Animation Blocks which can be ‘created’ with UIView. Well what did I know back then! Here’s the correct code to get a working implicit core animation working:
[UIView beginAnimations:@"Identifier describing your animation context:nil]; CALayer *layer = self.view.layer; layer.opacity = 0.1; layer.transform = CATransform3DMakeScale(.001, .001, .001); [UIView commitAnimations];
And there we have it :)


One Response to “Basic Core Animation — iPhone”