IPad View Controller memory management

I have 3 view controllers in my iPad app. When the first one appeared, the activity monitor in the tools informed me that the application memory is 25 MB. After calling [self presentModalViewController], a new view controller appeared, the memory capacity increased to 50 MB, and then the third, 70-75 MB.

What is the best view controller memory management for developing an iPad? I always get a Memory Warning now when I'm on a real iPad.

Thanks in advance. I apologize for my English, because it is not my native language. :)

0
source share
3 answers

iPad 256 , , iPhone 4 .

, . , .

+1

, viewDidUnload . iOS 3.0, , iOS , .

, IBOutlets , (, nib ) . , viewDidLoad.

:

- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
0

Source: https://habr.com/ru/post/1789253/


All Articles