Objective-C is the primary programming language used for writing OS X and iOS applications. A superset of the C programming language, it inherits the syntax and flow control statements of C, while providing object-oriented capabilities and a dynamic runtime. With interest in iOS application development growing, a lot of developers are learning about Objective-C, and proper memory management is a critical component of Objective-C.
With proper memory management techniques, developers will not have to worry about crashes or memory related bugs in their applications, and will be able to harness the comprehensive memory management tools and techniques in Xcode and Objective-C.
This book will familiarize you with the basic principles of Objective-C memory management, to create robust and effective iOS applications. You will begin with the basic understanding of memory management, and why memory leaks occur in an application. You will then move on to autorelease pools and object creation/storage to get an idea of how memory is allocated. Next, you will cover the aspects of data persistence with Core Data and transition to advanced topics such as key value observation. You will also see what ARC (Automatic Reference Counting) is and how it helps in memory management. Finally, you will cover some examples on how to use the various tools provided by Xcode to help in memory management, specifically Instruments. You will also get a basic understanding of Swift, the recently introduced programming language to write interactive and lightning-fast applications.
By the end of this book, you will have all the necessary knowledge to effectively memory-manage your application with best practices.
About This Book
Learn about the concepts of memory management in Objective-C
Get introduced to Swift, an innovative new programming language for Cocoa and Cocoa Touch
A step-by-step approach to various memory management techniques with lots of sample code and Xcode projects for your reference
Who This Book Is For
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.