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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-04-2011, 02:38 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2010
Posts: 41
cvcs1 is on a distinguished road
Exclamation Animation Lag.

Hello guys,

I have an animation that is 129 frames and I use the UIImageView animation function:

Code:
	
-(void)initBackground{							  
	backgroundArray = [[NSArray alloc] initWithObjects:                                   
                                           [UIImage imageNamed:@"1 001.png"],
					   [UIImage imageNamed:@"1 002.png"],
					   [UIImage imageNamed:@"1 003.png"],
					   [UIImage imageNamed:@"1 004.png"],
					   [UIImage imageNamed:@"1 005.png"],
					   [UIImage imageNamed:@"1 006.png"],
					   [UIImage imageNamed:@"1 007.png"],
                                           ...................................................
                                           [UIImage imageNamed:@"1 129.png"],
					   nil];
	background.animationImages = backgroundArray;
	background.animationDuration = 6;
	background.animationRepeatCount = 1;
	background.contentMode = UIViewContentModeBottomLeft;
	[background startAnimating];
}
I call this function from viewDidLoad using [self initBackground]; and I don't get warnings. But when I hit the button to start this class, It lags for so long that the animation is actually not viewed. Please help!

P.S. the long series of dots is just skipping me adding the rest of the frames
cvcs1 is offline   Reply With Quote
Reply

Bookmarks

Tags
animating, animation

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 371
16 members and 355 guests
Absentia, akphyo, apatsufas, BinHex, dre, Error404, Gaz, gmarro, jeroenkeij, Kirkout, MarkC, mottdog, Music Man, PavelMik, whitey99, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,666
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, cpsclicker
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:20 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0