Explain difference between release and autorelease?
Answer / Krishna Kumar Tiwari
In Objective-C, both 'release' and 'autorelease' are methods used to manage memory. 'Release' decrements the retain count of an object by 1, while 'autorelease' also sets the object's autorelease pool (a temporary area where objects are stored before they are deallocated). The difference is that 'release' does not automatically add the object to an autorelease pool and must be handled manually, while 'autorelease' does this automatically.
| Is This Answer Correct ? | 0 Yes | 0 No |
What devices will support ios 7?
Explain shallow copying and depth copying.
What kind of database is realm?
Explain the application lifecycle in ios?
How to edit iphone code
What is a protocol in objective-c programming language?
Is ios multithreading?
What are ios apps written in?
What are most ios apps written in?
What is the maximum byte-size for a push notification to apple server?
What is wildcard app ids?
What is nspersistentstore? Is it thread safe?