Memory management is something that every programmer dealing with Objective-C will encounter although Apple introduces a lot of tools to assist in ferreting out memory-related issues such as Instruments and NSZombies. There are some more subtle techniques and tools that are present in Objective-C and Xcode, which we will be looking into in this chapter. Some are obvious and some will give you a new perspective with regards to Objective-C. We will also cover some important topics such as:
Using the @property keyword
Using the getter/setter methods
Understand the property attribute in Objective-C
When to avoid KVC and KVO
So, let's get started!