I found that iphone has viewDidUnload and dealloc. I want to release an object. Which method should be used to free an object? What is the difference between the two?
Send releaseor autoreleaseto free an object. You must not send dealloc; Obj-C runtime will do this.
release
autorelease
dealloc
If you ask where you should publish an object belonging to him, read: " When should I release objects in - (void) viewDidUnload, and not in -dealloc? "
dealloc. - , Objective-C .
, -.
, viewDidUnload "" , dealloc , .
viewDidUnload
, dealloc, viewDidUnload , .
Source: https://habr.com/ru/post/1734418/More articles:Using Magento 1.4 WYSIWYG Editor on Custom Administration Pages - tinymceOracle Quick Picks [Huge Data] - javaWhen is (deep) cloning, use String.Copy or str1 = str2? - stringHow to create an encrypted PayPal button dynamically in Google App Engine? - google-app-engineHow to track down an HTTP request? - javascriptArray Arrays of Any Size in C # - stringСпящий режим: много-к-одному с использованием формулы - javaHow to check user helper in Rails? - ruby | fooobar.comAsp.NET dropdownlist в usercontrol не запускает событие SelectedIndexChanged - vb.netjQuery.form resetForm () does not reset the default select box - jqueryAll Articles