09-14-2010, 11:53 AM
#1 (permalink )
Registered Member
Join Date: Aug 2010
Posts: 236
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];
}
09-14-2010, 12:44 PM
#2 (permalink )
Fly-by-night Innovator
Join Date: Jun 2010
Posts: 364
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?
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
» 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