Honors Software Design - iOS Name -
Learn Objective-C in 6 Days Worksheet #5
Answer the following after reading http://mobile.tutsplus.com/tutorials/iphone/learn-objective-c-day-5/
1. What are the two methods for managing memory in Objective-C and which one will be used in iOS apps?
2. Explain how reference counting works?
3. When does the system deallocate an object?
4. What happens to the reference count for an object when alloc is used? What is your obligation as the programmer in this situation?
5. How is the reference count for an object affected when retain is used?
6. How is an autorelease pool used?
7. What is the advantage of being able to nest autorelease pools?