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 09-14-2010, 11:53 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 236
moezzz is on a distinguished road
Default animating... help plss

is this format correct?? it is okay on simulator. but crashed on device.. pls help thanks youuuu

Quote:
- (IBAction) start {

image.animationImages =[NSArray arrayWithObjects:

[UIImage imageNamed:@"nice.png"],
[UIImage imageNamed:@"yellow.png"],
[UIImage imageNamed:@"withglass.png"],
[UIImage imageNamed:@"candle.png"],
[UIImage imageNamed:@"alone.png"],
[UIImage imageNamed:@"cake.png"],
[UIImage imageNamed:@"2.png"],
[UIImage imageNamed:@"sexy.png"],
[UIImage imageNamed:@"4.png"],
[UIImage imageNamed:@"5.png"],
[UIImage imageNamed:@"angel.png"],
[UIImage imageNamed:@"gift.png"], nil];

image.animationDuration = 66.00;

image.animationRepeatCount = 1;

[self.view addSubview:image];

[image startAnimating];
}
moezzz is offline   Reply With Quote
Old 09-14-2010, 12:44 PM   #2 (permalink)
Fly-by-night Innovator
 
Join Date: Jun 2010
Posts: 364
musicwind95 is on a distinguished road
Default

I'm not sure about the animation code (I'm not good with animation), but assuming it runs on the simulator, my hunch now is that when you loaded all those images, you're using up more RAM than is available on device. What are the dimensions of the pics?
__________________
If I have helped you, please consider donating. I use PayPal. It would mean a lot to me!


For more iOS Development, check out my blog—Cups of Cocoa. All visitors welcome, but especially beginners!

Hope I have helped!

Please check out IceFall, a new action game available in the App Store!
musicwind95 is offline   Reply With Quote
Reply

Bookmarks

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: 321
18 members and 303 guests
2ndSegment, bignoggins, cayladv57, cgokey, dermotos, djohnson, Domele, EXOPTENDAELAX, guusleijsten, Hamad, heshiming, linkmx, Objective Zero, Rudy, Sloshmonster, teebee74, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,654
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, cayladv57
Powered by vBadvanced CMPS v3.1.0

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