Xcode 4 iOS Development Beginner's Guide

Use the powerful Xcode 4 suite of tools to build applications for the iPhone and iPad from scratch

$29.99

$49.99

RRP $29.99

RRP $49.99

eBook

Print + eBook

Want this title & more?

$16.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849691307

Paperback432 pages

About This Book

Learn how to use Xcode 4 to build simple, yet powerful applications with ease

Each chapter builds on what you have learned already

Learn to add audio and video playback to your applications

Plentiful step-by-step examples, images, and diagrams to get you up to speed in no time with helpful hints along the way

A practical guide to building your own fun and exciting iOS applications rapidly using Xcode 4

Who This Book Is For

If you want to learn how to build iOS applications that compete with the rest and make your mark within the iOS industry, this book is for you. You should have some basic programming experience with Objective-C, and a good understanding of OOP, as well as some knowledge of database design. No knowledge of Xcode 4 is required.

Table of Contents

Chapter 1: Introducing Xcode 4 Tools for iOS Development

Development using the Xcode tools

Inside Xcode, Cocoa, and Objective-C

The iPhone Simulator

Layers of the iOS architecture

Understanding Cocoa, the language of the Mac

The Model-View-Controller

What is Object-Oriented Programming?

What is Objective-C?

Objective-C classes

Introducing the Xcode Developer set of tools

Companion tools and features

Instruments

iPhone OS4 SDK new features

Summary

Chapter 2: Introducing the Xcode 4 Workspace

Downloading and installing the iOS SDK

Getting to know the Xcode Development Environment

Time for action – creating your first iPhone application

Introducing the Xcode 4 Workspace Environment

Introducing the Unified Navigation UI

Xcode Workspace Preferences

Summary

Chapter 3: Working with the Interface Builder

Getting to know the Interface Builder environment

Time for action – creating the HelloXcode4_GUI application

Time for action – adding object controls to our View

Time for Action – enabling Interface Rotation

Making our Components work together

Time for action – binding Control Objects

Time for action – repositioning the Controls

Time for action – hiding the keyboard

Introducing Document-based applications

Time for action – creating a Document-based application

Time for action – implementing file saving and loading

Summary

Chapter 4: Working with the Xcode Frameworks

Introducing the Frameworks

Using Frameworks and APIs in iPhone development

Time for action – creating the Core Data application

Time for action – creating the MusicPlayer application

Time for action – creating the MoviePlayer application

Time for action – making your application location aware

Time for action – creating a simple geographical application

New Framework APIs

Summary

Chapter 5: Designing Application Interfaces using MVC

Developing iOS applications using MVC design

Implementing MVC using Xcode and Interface Builder

Time for action – building a Pizza order application

Time for action – binding our Controls using Outlets and Actions

Time for action – declaring input field as a property of View Controller

Time for action – assigning address book identities within the organizer

Summary

Chapter 10: Making your Applications Run Smoothly

Introducing Instruments

Time for action – creating the InstrumentsExample project

Time for action – running and Profiling the project

Adding and configuring Instruments

New Instruments in Xcode 4

Summary

Chapter 11: Distributing your Application

Build configurations – debug to release

Time for action – setting up the team

Time for action – generating a Certificate Request

Time for action – getting the certificate

Time for action – registering devices

Time for action – creating the application ID

Time for action – creating the profile

Time for action – creating and deploying the app to an iOS device

Time for action – getting the Distribution Certificate

Time for action – uploading the application icon and screenshot images

Summary

What You Will Learn

Install and configure a set of frameworks to make your life easier for developing iPhone applications

Download and install the Xcode 4 Development Tools

Get started with Apple's Objective-C and Cocoa Touch

Understand the Model-View-Controller (MVC) development paradigm

Implement application input and views

Build rotatable and resizable user interfaces

Read and write data using the Core-Data framework

Use the iPhone's media playback to play sounds and videos

Create map and location-based services

Sense motion using the Accelerometer and Gyroscope

Manage source code with the Version Editor

Use instruments to make your applications run smoothly

Build, package and distribute your applications through the App Store

In Detail

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.

Xcode 4 iOS Development Beginner's Guide 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.

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.

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.

After reading Xcode 4 iOS Development Beginner's Guide, 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.

Authors

Steven F. Daniel

Steven F. Daniel is originally from London, England, but lives in Australia. He is the owner and founder of GENIESOFT STUDIOS (http://www.geniesoftstudios.com/), a software development company based in Melbourne, Victoria, that currently develops games and business applications for the iOS, Android, and Windows platforms. Steven is an experienced software developer with more than 13 years of experience developing desktop and web-based applications for a number of companies including, insurance, banking and finance, oil and gas, and local and state government. Steven is always interested in emerging technologies, and is a member of the SQL Server Special Interest Group (SQLSIG) and the Java Community. He has been the co-founder and Chief Technology Officer (CTO) of SoftMpire Pty Ltd., a company that focused primarily on developing business applications for the iOS and Android platforms.

Alerts & Offers

Series & Level

We understand your time is important. Uniquely amongst the major publishers, we seek to develop and publish the broadest range of learning and information products on each technology. Every Packt product delivers a specific learning pathway, broadly defined by the Series type. This structured approach enables you to select the pathway which best suits your knowledge level, learning style and task objectives.

Learning

As a new user, these step-by-step tutorial guides will give you all the practical skills necessary to become competent and efficient.

Beginner's Guide

Friendly, informal tutorials that provide a practical introduction using examples, activities, and challenges.

Essentials

Fast paced, concentrated introductions showing the quickest way to put the tool to work in the real world.

Cookbook

A collection of practical self-contained recipes that all users of the technology will find useful for building more powerful and reliable systems.

Blueprints

Guides you through the most common types of project you'll encounter, giving you end-to-end guidance on how to build your specific solution quickly and reliably.

Mastering

Take your skills to the next level with advanced tutorials that will give you confidence to master the tool's most powerful features.

Starting

Accessible to readers adopting the topic, these titles get you into the tool or technology so that you can become an effective user.

Progressing

Building on core skills you already have, these titles share solutions and expertise so you become a highly productive power user.