ios6 - Imageview And/OR Sound having memory Issue (going in back ground) -


my application in arc.
in view of application there 1 ground image , on image animations continuously repeating images.

problem : application going in background after time.

i seen , tried lots of thing on stack, google , on apple doc didn't got satisfactory solution.
i have 3 question.
(1) how stop ?
(2) there other method release memory manually in arc.
(3) if use [self.view removefromsuperview]; uiview memory didn't released in arc ?

mycode animation is

    imageview = [[uiimageview alloc] init];     imageview.image = [uiimage imagewithcontentsoffile:[[nsbundle mainbundle] pathforresource:@"bluecandy08" oftype:@"png"]];     [self.view addsubview:imgbubbleanimation];      imageview.animationimages = [nsarray arraywithobjects:                                           [uiimage imagewithcontentsoffile:[[nsbundle mainbundle] pathforresource:@"bluecandy01" oftype:@"png"]],                                           [uiimage imagewithcontentsoffile:[[nsbundle mainbundle] pathforresource:@"bluecandy02" oftype:@"png"]],                                           [uiimage imagewithcontentsoffile:[[nsbundle mainbundle] pathforresource:@"bluecandy03" oftype:@"png"]],                                           [uiimage imagewithcontentsoffile:[[nsbundle mainbundle] pathforresource:@"bluecandy04" oftype:@"png"]],                                           [uiimage imagewithcontentsoffile:[[nsbundle mainbundle] pathforresource:@"bluecandy05" oftype:@"png"]],                                           [uiimage imagewithcontentsoffile:[[nsbundle mainbundle] pathforresource:@"bluecandy06" oftype:@"png"]],                                           [uiimage imagewithcontentsoffile:[[nsbundle mainbundle] pathforresource:@"bluecandy07" oftype:@"png"]],                                           nil];     [imageview setanimationrepeatcount:0]; // 0 continuous     imageview.animationduration =3.0;     [imageview startanimating]; 

and sound files (played when particular button clicked)

url = [nsurl fileurlwithpath: [[nsbundle mainbundle]                                      pathforresource:@"ect1a" oftype:@"mp3"]]; audiosound = [[avaudioplayer alloc] initwithcontentsofurl:url error:nil]; audiosound.delegate = self; audiosound.volume = 5.0; audiosound.numberofloops = 0; [audiosound play]; 

i have 15 small sound files 1 view , 15 animations 1 view.
in every particular animation there min 15 images.
help, suggestion, link or tutorial welcome.

not using imageview.animationimages first thing need memory usage under control. api should never used lets shoot in foot easily. see imageview-animation-getting-more-memory or unpredictable-crash-due-to-uiview-animations or iphone-app-memory-leak-with-uiimage-animation-problem-testing-on-device.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -