I am trying to tweak the animation in xcode for a long time, At first I started trying to animate 100 1000x1000 png, but these images were too big for iphone, now I am trying to animate 100 320x480 pngs and it seems like it animates to 40 frames per second, then the application crashes, so is there any other way of animation that wouldn't do this? Probably just because this code uploads too many iphone images for processing, is there any other method I can use to get the application to crash? Or can I optimize this code further? (By the way, I'm new to the iphone platform, so keep in mind when replying)
- (IBAction)startClick1:(id)sender{ spud123.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed: @"spud1230000.png"], [UIImage imageNamed: @"spud1230001.png"], [UIImage imageNamed: @"spud1230002.png"], [UIImage imageNamed: @"spud1230003.png"], [UIImage imageNamed: @"spud1230004.png"], [UIImage imageNamed: @"spud1230005.png"], [UIImage imageNamed: @"spud1230006.png"], [UIImage imageNamed: @"spud1230007.png"], [UIImage imageNamed: @"spud1230008.png"], [UIImage imageNamed: @"spud1230009.png"], [UIImage imageNamed: @"spud1230010.png"], [UIImage imageNamed: @"spud1230011.png"], [UIImage imageNamed: @"spud1230012.png"], [UIImage imageNamed: @"spud1230013.png"], [UIImage imageNamed: @"spud1230014.png"], [UIImage imageNamed: @"spud1230015.png"], [UIImage imageNamed: @"spud1230016.png"], [UIImage imageNamed: @"spud1230017.png"], [UIImage imageNamed: @"spud1230018.png"], [UIImage imageNamed: @"spud1230019.png"], [UIImage imageNamed: @"spud1230020.png"], [UIImage imageNamed: @"spud1230021.png"], [UIImage imageNamed: @"spud1230022.png"], [UIImage imageNamed: @"spud1230023.png"], [UIImage imageNamed: @"spud1230024.png"], [UIImage imageNamed: @"spud1230025.png"], [UIImage imageNamed: @"spud1230026.png"], [UIImage imageNamed: @"spud1230027.png"], [UIImage imageNamed: @"spud1230028.png"], [UIImage imageNamed: @"spud1230029.png"], [UIImage imageNamed: @"spud1230030.png"], [UIImage imageNamed: @"spud1230031.png"], [UIImage imageNamed: @"spud1230032.png"], [UIImage imageNamed: @"spud1230033.png"], [UIImage imageNamed: @"spud1230034.png"], [UIImage imageNamed: @"spud1230035.png"],
}
Ps: Iv'e tried NSTimer, but I can not stop this by repeating the animation