small medium large xlarge

Generic-user-small
03 Jan 2009, 15:43
Michael Keith (4 posts)

when i build & run the example code the quartz composition appears, but does not animate. i’m baffled as to why this is - the earlier QC example (in the Core Animation chapter) runs fine.. and if i create a new project and copy QuartzCompositionView.h/.m into it, it works fine. could it be something to do with the project? weird.

also.. i think that after creating the animation, i.e.:

animation = [CABasicAnimation animationWithKeyPath:keyPath];

the animation should be retained. if you click multiple times, then it’ll crash the on the third click due to the animation being released, but the static var is still pointing to the old mem.

You must be logged in to comment