May 2013
Intermediate to advanced
320 pages
9h 15m
English
Memory management is an important concept in any object-oriented language, such as Objective-C. Understanding the specifics of any language’s memory-management model is vital to being able to write memory-efficient, bug-free code.
Once you understand the rules, memory management in Objective-C is not complicated and was made easier when Automatic Reference Counting (ARC) came along. ARC diverts nearly all the memory-management decisions to the compiler, leaving you to concentrate on the business logic.
Objective-C uses reference counting for memory management, meaning that every object has a counter that is incremented and decremented. You increment the counter when you want to register ...
Read now
Unlock full access