O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6
Memory Management
In This Chapter
• Why there is no garbage collector
• Reference counting
• The golden rules of memory management
• Properties
Imagine your app crashes, providing very few details in the console beyond the cryptic string EXC_BAD_ACCESS. Now, multiply the aggravation you feel 100-fold as this EXC_BAD_ACCESS message shows up repeatedly while developing your app. You slowly move code around and hack until the errors go away, but you’re left with code you completely don’t understand anymore. How did this happen?
You have just roughly approximated the experience of almost every Cocoa developer to come before you. EXC_BAD_ACCESS is a sign of problems with memory management in your app. Memory management is by far ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required