objective c - iOS app crashes on device not simulator: Im using an animation with 280+ images -


ive read other similar questions/answers on topic im finding hard relate answers problem. have animation of 280+ images works(after brief pause) on emulator, , causes ipad device crash (once press play button). im guessing memory issue, there way load amount of animation @ time rather of @ once (maybe possible solution.

please see code:

 nsmutablearray *array = [nsmutablearray array]; (int i=2; < 288; i++) {     nsstring *name = [nsstring stringwithformat:@"invasive%04d.png", i];     uiimage *image = [uiimage imagenamed:name];     if (!image) {         nslog(@"could not load: %@", name);     }     else {         [array addobject:image];     } }  self.imageview.animationimages = array; 

i've run 'analyze' on code , there no issues.

thanks all.

i doubt feature designed such task. @ using cadisplaylink , doing display updates there. primary app can keep 10 images or ahead of display link, , displaylink can release images done with. around many find has posted code (using key of cadisplaylink)).


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -