using Instrument after my migration to ARC I realise that the transition from screens does not clean memory. example of steps :
1)Home screen A -> game screen B = rising of memory usage 2)Game is finished and I go from screen B back to Home screen A
For step 2, memory usage does not go lower. I'd like to have the memory consumed by screen B being freed when removing screen B from screen ... What should I do to be sure this freeing to happen ?
Going from A to B :
GameVC_iPad *game = [[GameVC_iPad alloc]initWithNibName:@"ClassicGameVC_iPad" bundle:nil]; [self presentViewController:game animated:YES completion:nil];
Going back to A from B is done using this code :
HomeVC_iPad *home = [[HomeVC_iPad alloc]initWithNibName:@"HomeVC_iPad" bundle:nil]; home.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; [self presentViewController:home animated:YES completion:nil];
Any clue ?