What are nsautoreleasepool? When to use them?
Answer / Sonu Gautam
NSAutoreleasePool is a memory management tool in Cocoa that helps manage memory automatically. It collects objects marked with `autorelease` and releases them when the pool is drained, typically at specific points during the run loop. You should use autorelease pools when you have a complex object graph where it's difficult to manage memory manually.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain what are the attributes of category?
What are the advantages of using objective-c?
What is difference between c and objective c?
Explain what do you mean by dot notation?
What is struct in objective c?
What is a delegate in objective c?
What is the difference between weak and unowned?
What are kvc and kvo? Provide an example.
Tell me about important protocol being used in objective c?
What do you mean by cocoa?
What are the 5 principles of object oriented programming?
What is the difference between function and objective?