Free Sample
+ Collection

Xcode 4 iOS Development Beginner's Guide

Beginner's Guide
Steven F. Daniel

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
Creating a view-based application template
Time for Action – creating the FavoriteColor application
Time for action – binding our Controls using Outlets and Actions
Time for action – creating a Table view application
Time for action – grouping row items in our TableViewExample application
Time for action – creating the SwitchesSlidersSegments project
Time for action – binding our Controls using Outlets and Actions
Time for action – creating the ScrollingViews project
Time for action – binding our Controls using Outlets and Actions
Time for action – creating the Date Picker project
Time for action – binding our Controls using Outlets and Actions
Time for Action – creating the Custom Picker project
Time for action – binding our Controls using Outlets and Actions
Time for action – creating application with Text fields, Text Views, and Buttons
Time for action – binding our Controls using Outlets and Actions
Summary
Chapter 6: Displaying Notification Messages
Exploring the notification methods
Generating alerts
Time for action – creating the GetUsersAttention application
Time for action – adding the AudioToolbox Framework to our application
Time for action – adding controls to our View
Time for action – implementing the Show Activity Indicator method
Time for action – implementing the Display Alert Dialog method
Using Action Sheets to associate with a view
Time for action – implementing the Display Action Sheet method
Time for action – handling alerts via sounds and vibrations
Summary
Chapter 7: Exploring the MultiTouch Interface
Introducing the MultiTouch architecture
Time for action – creating the TapExample project
Time for action – binding our Controls
Time for action – creating the SwipeExample project
Time for action – creating the PinchExample project
Time for action – creating the ShakeExample project
Time for action – implementing the motionBegan, motionEnded, and motionCancelled methods
Exploring the Accelerometer/Gyroscope
Time for action – creating the OrientationExample project
Time for action – creating the AccelGyroExample project
Summary
Chapter 8: Debugging Xcode Projects
Introducing the new and improved Debugger
Creating a new debugging project
Time for action – creating the DebuggingExample project
Running and debugging the project
Time for action – setting up the LLVM compiler
Exploring the new Debugger
Time for action – using the Scheme Editor to define a Scheme
Time for action – running the Static Analyzer
Time for action – configuring your project to perform automatic Static Analysis
Time for action – Detecting a memory leak
Time for action – detecting an instance of an uninitialized variable
Time for action – working with code completion
Time for action – stopping Xcode from alerting you to problems
Summary
Chapter 9: Source Code Management with the Version Editor
Introducing the new Version Editor
Time for action – setting up a local Subversion repository
Time for action – configuring the Subversion repository
Time for action – adding our TapExample project to the repository
Time for action – checking out the project from the repository
Using Git to manage multiple projects
Time for action – creating a new Xcode project using Git
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

Read More

Recommended for You