Book Image

Xcode 4 iOS Development Beginner's Guide

By : Steven F. Daniel
Book Image

Xcode 4 iOS Development Beginner's Guide

By: Steven F. Daniel

Overview of this book

<p>The iPhone is one of the hottest mobile devices on the planet. Whether you are just starting out with iOS Development or already have some knowledge in this area, you will benefit from what this book covers. Using this book's straightforward, step-by-step approach, you will go from Xcode 4 apprentice to Xcode 4 Jedi master in no time.</p> <p><i>Xcode 4 iOS Development Beginner's Guide</i> will help you learn to build simple, yet powerful applications for the iPhone from the ground up. You will master the Xcode 4 tools and skills needed to create applications that are simple yet, like Yoda, punch far above their weight.</p> <p>You will start by learning about the Xcode 4 Development Tools, Xcode IDE, iOS Simulator, Objective-C 2, and Organizer. Then you will jump straight in and create applications using Xcode and Interface Builder. You finish up by learning how to build, package, and distribute your application to the Apple App Store.</p> <p>This book will teach you how to go about building simple applications from scratch, you will master how to download and install the Xcode 4 Development Tools, get to know the development environment and how to build great user interfaces (using Interface Builder), learn about the different iOS frameworks, learn how to implement video and audio playback, learn how to sense motion using the Accelerometer and Gyroscope, and how to improve the reliability and performance of your applications.</p> <p>After reading <i>Xcode 4 iOS Development Beginner's Guide</i>, you will be able to write your own applications for the iPhone with supreme efficiency. There are a lot of examples and images provided to get you up to speed quickly.</p>
Table of Contents (20 chapters)
Xcode 4 iOS Development
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Pop Quiz Answers
Index

Instruments


The Xcode instruments allow you to dynamically trace and profile the performance of your Mac OS X, iPhone, and iPad applications. You can also create your own Instruments using DTrace and the Instruments custom builder.

Note

We do not cover DTrace in this book, if you are interested in reading a bit more about this area; please consult the Apple Developer Documentation at the following: http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/dtrace.1.html#//apple_ref/doc/man/1/dtrace. DTrace has not been ported to iOS, so it is not possible to create a custom instrument for devices running iOS.

Through the use of instruments, you can achieve the following:

  • Ability to perform stress-tests on your applications

  • Monitor your applications for memory leaks, which can cause unexpected results

  • Gain a deeper understanding of the execution behaviour of your applications

  • Track down difficult-to-reproduce problems in your applications

  • In the screenshot displayed below, it shows you the current list of available instrument templates which you can choose from, to perform a variety of different traces on your iOS applications. We will be discussing and using these in greater detail, when we come to Chapter 10, Making your Applications run smoothly.

  • In the following screenshot, we display the Instruments environment where you can start to create your robust test harness for your application to ensure that any memory leaks and resource-intensive tasks are rectified to avoid problems later when your users download your app and experience issues:

    Note

    If you are interested in learning more about the other applications that are included with Xcode and the iOS 4 SDK, please consult the Apple Developer documentation at the following: http://developer.apple.com/