Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-10-2009, 03:19 PM   #1 (permalink)
Jecht
Registered Member
 
Join Date: Apr 2009
Posts: 15
Default 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
Jecht is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,746
Threads: 89,202
Posts: 380,573
Top Poster: BrianSlick (7,129)
Welcome to our newest member, raKinesic
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:56 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.