Xcode 4 Cookbook


Xcode 4 Cookbook
eBook: $35.99
Formats: PDF, PacktLib, ePub and Mobi formats
$30.59
save 15%!
Print + free eBook + free PacktLib access to the book: $95.98    Print cover: $59.99
$59.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Learn how to go about developing some simple, yet powerful applications with ease using recipes and example code
  • Teaches how to use the features of iOS 6 to integrate Facebook, Twitter, iCloud, and Airplay into your applications
  • Lots of step-by-step recipe examples with ample screenshots right through to application deployment to the Apple App Store to get you up to speed in no time, with helpful hints along the way

Book Details

Language : English
Paperback : 402 pages [ 235mm x 191mm ]
Release Date : May 2013
ISBN : 184969334X
ISBN 13 : 9781849693349
Author(s) : Steven F Daniel
Topics and Technologies : All Books, Application Development, iOS, Cookbooks

Table of Contents

Preface
Chapter 1: Getting and Installing the iOS SDK Development Tools
Chapter 2: User Interfaces – Creating the UI
Chapter 3: Using Storyboards
Chapter 4: Using Xcode Instruments
Chapter 5: Working with the Location Services and the MapKit Frameworks
Chapter 6: Storing Documents within the Cloud
Chapter 7: Working with Different Multimedia Resources
Chapter 8: Working with the CoreData and GameKit Frameworks
Chapter 9: Creating a Social Networking App with the Facebook iOS SDK
Chapter 10: Packaging and Deploying Your Application
Appendix: Exploring the MultiTouch Interface
Index
  • Chapter 1: Getting and Installing the iOS SDK Development Tools
    • Introduction
    • Downloading and installing the iOS SDK
    • Using Xcode to create an iOS project
    • Using Interface Builder to create the user interface
    • Building the user interface for our application
    • Creating outlets to Interface Builder objects
    • Creating actions that respond to user actions
    • Compiling your project
    • Using the iOS Simulator to test your applications
    • Configuring and using compiler directives
    • Debugging your iOS applications using Xcode
    • Using the Clang Static Analyzer to examine your code
    • Chapter 2: User Interfaces – Creating the UI
      • Introduction
      • Adding and customizing views
      • Using labels to display text
      • Obtaining user input through the use of buttons
      • Displaying an image within the view
      • Displaying and editing text
      • Using the iOS device keyboard
      • Displaying the progress to the user
      • Adding a toolbar to a view
      • Fading a view in and out
      • Creating a custom table view controller
      • Adding a table view to a view controller
      • Handling different iOS devices
      • Chapter 3: Using Storyboards
        • Introduction
        • Configuring storyboards for a project
        • Creating a Twitter application
        • Creating storyboard scenes
        • Configuring storyboard scenes
        • Applying transitions to storyboards
        • Composing a tweet
        • Adding photos to a tweet
        • Preparing transition to another view controller
        • Presenting storyboard view controllers programmatically
        • Chapter 4: Using Xcode Instruments
          • Introduction
          • Introducing Xcode Instruments
          • Tracing iOS applications
          • Running and profiling an iOS project
          • Detecting virtual memory faults
          • Detecting memory leaks
          • Handling runtime errors
          • Handling compile-time errors
          • Adding and configuring Instruments
          • Chapter 5: Working with the Location Services and the MapKit Frameworks
            • Introduction
            • Adding the CoreLocation and MapKit frameworks
            • Building a simple CoreLocation application
            • Determining the current GPS location
            • Adding and working with the MapView control
            • Adding overlay regions to maps
            • Adding annotation placeholders to the map
            • Reversing geocode address information
            • Working with the different map types
            • Chapter 6: Storing Documents within the Cloud
              • Introduction
              • Storing and using documents within iCloud
              • Working with the iCloud storage APIs
              • Detecting file version conflicts within iCloud
              • Building the iCloud application
              • Requesting entitlements for iCloud storage
              • Configuring iOS devices to use iCloud
              • Chapter 7: Working with Different Multimedia Resources
                • Introduction
                • Selecting images and video from the camera roll
                • Capturing media with the camera
                • Playing video with Apple TV integration
                • Playing music using the MediaPlayer framework
                • Using the iOS device's microphone to record
                • Animating views
                • Drawing customized text
                • Drawing lines and curves
                • Drawing and filling shapes
                • Applying color effects using Core Image
                • Applying transition effects
                • Chapter 8: Working with the CoreData and GameKit Frameworks
                  • Introduction
                  • Adding the GameKit and MessageUI frameworks
                  • Building the Core Data data model
                  • Creating the Core Data model files
                  • Adding and configuring the Storyboard
                  • Creating the Books Library user interface
                  • Displaying data within the Table View
                  • Inserting data within our Core Data data model
                  • Delete an item from the Table View using Core Data
                  • Reordering rows within a Table View
                  • Filtering and searching for data within a Table View
                  • Working with the different keyboard styles
                  • Transferring data to another device using bluetooth
                  • Implementing e-mail messaging
                  • Chapter 9: Creating a Social Networking App with the Facebook iOS SDK
                    • Introduction
                    • Downloading the Facebook iOS SDK
                    • Registering your iOS applications with Facebook
                    • Building a simple social networking application
                    • Adding the Facebook SDK and dependencies to your project
                    • Implementing the Single Sign On (SSO) feature
                    • Implementing the View Controller class
                    • Requesting additional Facebook permissions
                    • Using the Graph API to read JSON data
                    • Integrating with the Facebook social channels
                    • Handling Facebook errors within your application
                    • Chapter 10: Packaging and Deploying Your Application
                      • Introduction
                      • Setting up your iOS development team
                      • Creating the iOS development certificate
                      • Obtaining the development certificate from Apple
                      • Registering your iOS devices for testing
                      • Creating your application App IDs
                      • Creating the development provisioning profiles
                      • Using the provisioning profile to install the app on an iOS device
                      • Preparing an application for submission to the App Store using iTunes Connect
                      • Archiving and submitting apps using Xcode 4
                      • Appendix: Exploring the MultiTouch Interface
                        • Introduction
                        • Sensing the movement and device orientation
                        • Using the shake gesture with the touch interface
                        • Detecting device touches with the touch interface
                        • Sensing movement with the accelerometer input
                        • Working with the iOS device gyroscope

                        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. He is the author of Xcode 4 iOS Development Beginner's Guide, iOS 5 Essentials, and iPad Enterprise Application Development Blueprints. You can check out his blog at http://geniesoftstudios.com/blog/, or follow him on twitter at http://twitter.com/GenieSoftStudio.

                        Code Downloads

                        Download the code and support files for this book.


                        Submit Errata

                        Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                        Sample chapters

                        You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                        Frequently bought together

                        Xcode 4 Cookbook +    Practical Mobile Forensics =
                        50% Off
                        the second eBook
                        Price for both: £31.05

                        Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                        What you will learn from this book

                        • Download and install the Xcode 4 iOS 6 Developer Tools
                        • Build user interfaces using Interface Builder
                        • Discover the Core Image and Core Graphics Frameworks and the built-in image filters
                        • Use Instruments to make sure your applications are running smoothly
                        • Explore the Core Location and MapKit frameworks to display the current user’s location and to apply the geocoding of address information
                        • Master iCloud Storage APIs to upload and download content, as well as how to go about handling file-conflicts
                        • Integrate the Facebook, OpenGraph, and Facebook Query Language (FQL) APIs into your applications
                        • Deploy your applications to the Apple App Store

                        In Detail

                        The release of iOS 6 comes packed with over 1,500 new APIs and 200 new features. Xcode 4 Cookbook will teach youhow to integrate iCloud storage and how to go about using the Facebook and OpenGraphi APIs, as well as providing you with practical step-by-step recipes covering User Interfaces, data management, multimedia, localisation services and maps, right through to application deployment to the Apple App Store. You will soon be mastering the technology and the skills needed to create some amazing applications.

                        "Xcode 4 Cookbook" will help you learn how to build some powerful applications using iOS 6 and the various frameworks. You will soon master how to incorporate iCloud, Facebook, and the OpenGraph APIs and apply various image filters and transitions using Core Image integration within your applications. By using the book’s step-by-step approach, you will soon master the technology and the skills needed to create some amazing applications.

                        "Xcode 4 Cookbook" provides you with the skills and knowledge and practical recipes on how to go about developing useful applications that can be used within the industry.

                        You will start by learning how to go about downloading and installing the Xcode Development Tools, learn about Interface Builder to create the visual user interfaces, connecting the objects using Outlets and Actions, and learn how to compile/debug your applications.

                        Finally, you will learn how to capture media with the iOS camera and play back video content using Airplay to wirelessly stream videos to an Apple TV device, using the AV Foundation framework, as well as using the Core Image and Core Graphics frameworks to create amazing image effects using the built-in features.

                        Approach

                        This is a Cookbook with easy-to-follow recipes containing practical and detailed examples which are all fully backed up with code, illustrations, and tips.

                        Who this book is for

                        If you ever wanted to build applications that integrate Facebook, iCloud, Core Location, and the Core Motion frameworks into your own applications then this book is for you.

                        You should have a good knowledge and programming experience with Objective-C and have used Xcode 4 and iOS 5.

                        Code Download and Errata
                        Packt Anytime, Anywhere
                        Register Books
                        Print Upgrades
                        eBook Downloads
                        Video Support
                        Contact Us
                        Awards Voting Nominations Previous Winners
                        Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                        Resources
                        Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software