I want to ask a stupid question about the iPhone app. I am a green iPhone application. I read the following code on the Apple website.
MyViewController *aViewController = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:[NSBundle mainBundle]]; [self setMyViewController:aViewController]; [aViewController release];
And I have a question, how does this mean “release” on line 3?
Does this mean memory? or does the program manage this object? or other meanings. Thank you very much.
alloc -, , , 1 - , -, . retain , , 2 . 0, , . , release .
alloc
retain
release
aViewController alloc 'd, , 1 +1.
aViewController
2. , retain .
3, , release . - , .
, alloc, , release, , .
. , retain, , retain . , . ( , ). , , .
, alloc , .
Source: https://habr.com/ru/post/1755950/More articles:MsiSetProperty from C # Custom Action - c #How to add a stored function in Entity Framework - sql-serverIs there any way to merge get parameters? - HTML / Javascript - javascriptDifference between transaction scope and manually defined transactions? - c #Running an external script from Access - vbaFastest PDF-> text library for .NET project - c #IE png superuser fix causing overflow problem - javascriptLoop streaming.ogg audio - OpenAL - c ++Stop on-screen keyboard for Android Emulator? - androidUsing AND, OR, and NOT in a Solr query - syntaxAll Articles