Chapter     21

The Elephant in the Room

So far, I’ve been ignoring a huge part of app development, memory management. It can be a difficult and painful topic, and has been the bane of many a programmer. I, personally, have spent days tracking down memory leaks and over-release bugs. If you have any programming experience, you’ve probably dedicated a significant portion of your brain to dealing with memory management rules.

So how did I pull this off—ignoring such an important topic—for most of this book? The answer is Automatic Reference Counting (ARC). Apple, in collaboration with the Objective-C language developers, has baked efficient—and nearly foolproof—memory management right into Objective-C and iOS. This is a huge boon for modern iOS ...

Get Learn iOS 7 App Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.