UIView Transform - Performance Memory issue
Hi All~
I have this animation. Basically the a "pin" image just rotates left and right slowly. Here's my animation code:
- (void)pinAnimation{
// Blah blah calculate rotation
compassPin.superview.transform = CGAffineTransformMakeRotation(PI*rotation);
}
And this animation is called by the timer:
pinAnimationTimer = [NSTimer scheduledTimerWithTimeInterval:0.1
target:self
selector:@selector(pinAnimation)
userInfo:nil repeats:YES];
Using instrument, the memory usage keeps on going up on its own. And the weird thing is, when I remove the compassPin.superview.transform... code, the memory remains constant. Why would this transform add up the memory usage? And how do I fix this?
Thanks so much
|