On May 31, 2008, at 16:39, "Stéphane Droux" <email@hidden>
> When I run the program in MallocDebug, the memory usage goes up
every time the timer function is executed. If I change the animation
to be on l2 instead of l1, or if I create l2 as a sublayer of
mainLayer, the memory usage remains constant. Am I doing something
wrong ?
An NSTimer is not really the appropriate way to do this. Have a look
at CABasicAnimation, which you might use in the following manner
(untested code written on an iPhone, so no guarantees):