Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-10-2009, 02: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
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,212
Threads: 38,996
Posts: 171,042
Top Poster: smasher (2,569)
Welcome to our newest member, wardz
Powered by vBadvanced CMPS v3.1.0

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