Book Image

Objective C Memory Management Essentials

Book Image

Objective C Memory Management Essentials

Overview of this book

Table of Contents (18 chapters)
Objective-C Memory Management Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Collecting data on your app


Do note that a memory warning level does not necessarily mean that your application is leaking memory. There could be a situation where your application is loading or performing operations on large resources such as data files, images, videos, and so on and this will trigger the memory warning. ARC will handle the cleaning up later. However, if you see a memory warning level 2, then you should start to look at your code as the next memory warning level will be the actual application crash.

Debugging crashes and memory leaks are like the game of hide and seek or playing detective. There will be a lot of clues lying around, which will lead you to the culprit in your code that is causing a bothersome crash or memory leak. Apple has provided us with a lot of tools and logs, which will be useful for us in debugging our code. We will cover some of the commonly used methods here so that you can get cracking with regards to fixing those problems as soon as possible.

One...