Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Objective C Memory Management Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
Objective C Memory Management Essentials

Objective C Memory Management Essentials

By : Tang
3.3 (3)
close
close
Objective C Memory Management Essentials

Objective C Memory Management Essentials

3.3 (3)
By: Tang

Overview of this book

If you are new to Objective-C or a veteran in iOS application development, this is the book for you. This book will ensure that you can actively learn the methods and concepts in relation to memory management in a more engaging way. Basic knowledge of iOS development is required for this book.
Table of Contents (13 chapters)
close
close
12
Index

What this book covers

Chapter 1, Introduction to Objective-C Memory Management, will introduce you to reference counting, Manual Retain Release (MRR), object ownership, sand life cycle, and memory leaks.

Chapter 2, Automatic Reference Counting, will introduce you to ARC and how it works, its advantages, and how to set up your projects to use ARC, memory models in Objective-C, and UIKit with ARC.

Chapter 3, Using Autorelease Pools, introduces you to autorelease pools, autorelease pools mechanics, Apple-autoreleased classes overview, ARC and autorelease, and blocks and threads.

Chapter 4, Object Creation and Storage, will cover the different ways to create objects; a comparison of different memory management options: ARC, MRC, autorelease pools, garbage collection, memory models; and how @property makes your life easier.

Chapter 5, Managing Your Application Data, will cover disk cache, UI techniques of partial data display, serialization and archiving objects, methods to encode and decode objects, cases when you need SQLite, and SQLite versus Core Data.

Chapter 6, Using Core Data for Persistence, explains what Core Data is and why you should use it, NSManagedObject and its use in your application, memory management when using Core Data, and the common errors.

Chapter 7, Key-value Programming Approaches, explains what key-value coding or KVC is, the NSKeyValueCoding protocol, manual subsets of NSKeyValueCoding behavior, associated objects, selectors as keys, maximum flexibility, and handling keys/values.

Chapter 8, Introduction to Swift, highlights Cocoa binding in OS X, differences between automatic and manual key-value observing, and how key-value observation is implemented.

Chapter 9, Memory Management and Debugging, covers memory overuse, collecting data on your app, how to use instruments in Xcode, using the LLVM/Clang Static Analyzer, using NSZombie to help find an over-released object, and plumbing leaks.

Chapter 10, Tips and Tricks for Memory Management, explains the use of accessor methods, declaring accessors using properties, performance guidelines, and when you should avoid KVC and KVO.

Chapter 11, Features of Xcode 6, introduces you to new tools such as view hierarchy debugger, preview editor, and the addition of new functionalities such as allowing storyboards and NIBs to be used as launch images for your application instead of just static images.

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY