Image Size for Animation!
Posted
by taimur-hamza
on Stack Overflow
See other posts from Stack Overflow
or by taimur-hamza
Published on 2010-04-26T11:21:21Z
Indexed on
2010/04/26
11:23 UTC
Read the original article
Hit count: 187
Hi Everybody,
I m new to iphone app development and i need some help. I have a list of 30 images that i have to animate and display with 0.1 second interval. I put all the images in an Array using this
imageletter.animationImages = [NSArray arrayWithObjects:[UIImage imageNamed:@"1.png"], ...... ,nil]
And then animate it using these statements,
[imageletter setAnimationDuration:16]; [imageletter startAnimating]; [NSTimer scheduledTimerWithTimeInterval:mytime target:self selector:@selector(StopAfterCertainTime) userInfo:nil repeats:NO];
Now the problem is that the size of each image is 8kb , it runs fine on iphone simulator but crashes on device. When i used 30 other images of 4kb each it runs fine both on simulator and device. Can anybody tell me what is the ideal size for such kind of task. Thanks
© Stack Overflow or respective owner