Application Development in iOS 7
By Begeman Kyle
()
About this ebook
Related to Application Development in iOS 7
Related ebooks
Swift 2 Blueprints Rating: 0 out of 5 stars0 ratingsInstant New iPad Features in iOS 6 How-to Rating: 0 out of 5 stars0 ratingsInstant PhoneGap Social App Development Rating: 0 out of 5 stars0 ratingsPhoneGap and AngularJS for Cross-platform Development Rating: 0 out of 5 stars0 ratingsiOS 5 Essentials Rating: 0 out of 5 stars0 ratingsCocos2D Game Development Essentials Rating: 0 out of 5 stars0 ratingsRubyMotion iOS Develoment Essentials Rating: 0 out of 5 stars0 ratingsiOS 13 Programming for Beginners - Fourth Edition: Get started with building iOS apps with Swift 5 and Xcode 11, 4th Edition Rating: 0 out of 5 stars0 ratingsiOS Developer Solutions Guide: Learn How to Create Stable and Bug-free iOS Apps (English Edition) Rating: 0 out of 5 stars0 ratingsLearning SQLite for iOS Rating: 0 out of 5 stars0 ratingsiOS 15 Application Development for Beginners: Learn Swift Programming and Build iPhone Apps with SwiftUI and Xcode 13 Rating: 0 out of 5 stars0 ratingsLearn iOS Application Development: Take Your Mobile App Development Skills to the Next Level with Swift and Xcode (English Edition) Rating: 0 out of 5 stars0 ratingsInstant Android Fragmentation Management How-to Rating: 0 out of 5 stars0 ratingsOpa Application Development Rating: 0 out of 5 stars0 ratingsInstant Kendo UI Mobile Rating: 0 out of 5 stars0 ratingsSwift 5 for Absolute Beginners: Learn to Develop Apps for iOS Rating: 0 out of 5 stars0 ratingsiOS Forensics Cookbook Rating: 0 out of 5 stars0 ratingsiOS 9 Game Development Essentials Rating: 0 out of 5 stars0 ratingsAppium Essentials Rating: 0 out of 5 stars0 ratingsObjective-C Memory Management Essentials Rating: 0 out of 5 stars0 ratingsLearning AngularJS Animations Rating: 4 out of 5 stars4/5Application Development with Swift Rating: 0 out of 5 stars0 ratingsSwift iOS Programming for Kids Rating: 0 out of 5 stars0 ratingsTest-Driven iOS Development with Swift Rating: 5 out of 5 stars5/5Instant Play Framework Starter Rating: 0 out of 5 stars0 ratingsSproutCore Web Application Development Rating: 0 out of 5 stars0 ratingsWindows Phone 7.5: Building Location Aware Applications Rating: 0 out of 5 stars0 ratingsGetting Started with ResearchKit Rating: 0 out of 5 stars0 ratingsLearning Splunk Web Framework Rating: 0 out of 5 stars0 ratingsPhoneGap for Enterprise Rating: 0 out of 5 stars0 ratings
Programming For You
Python: For Beginners A Crash Course Guide To Learn Python in 1 Week Rating: 4 out of 5 stars4/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5HTML & CSS: Learn the Fundaments in 7 Days Rating: 4 out of 5 stars4/5Learn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5SQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5101 Amazing Nintendo NES Facts: Includes facts about the Famicom Rating: 4 out of 5 stars4/5Java for Beginners: A Crash Course to Learn Java Programming in 1 Week Rating: 5 out of 5 stars5/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Pokemon Go: Guide + 20 Tips and Tricks You Must Read Hints, Tricks, Tips, Secrets, Android, iOS Rating: 5 out of 5 stars5/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Python Machine Learning By Example Rating: 4 out of 5 stars4/5Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5C# 7.0 All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsGrokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5ReactJS by Example - Building Modern Web Applications with React Rating: 4 out of 5 stars4/5
Reviews for Application Development in iOS 7
0 ratings0 reviews
Book preview
Application Development in iOS 7 - Begeman Kyle
Table of Contents
Application Development in iOS 7
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Xcode 5 – A Developer's Ultimate Tool
The new user experience
Top-level documentation
Debugger and debug gauges
Automatic configuration with accounts and capabilities
Source control
Asset catalogs
Quick build device selection
Storyboard previews
Summary
2. Foundation Framework – Growing Up
Why Foundation matters
Modules
Precompiled headers – a partial solution
Modules – smart importing
NSProgress
NSArray
NSTimer
NSData
NSURLUtilities
Summary
3. Auto Layout 2.0
Why you should use Auto Layout
Creating our project
Starting our storyboard
Setting up button actions
Using Auto Layout
Applying constraints
Resolving Auto Layout issues
Finishing our menu view
Preparing for navigation
Summary
4. Building Our Application for iOS 7
Designing for iOS 7
The navigation bar and status bar
The new UIKit
Updated app icons
Putting together the pieces
Project organization
Creating the files
Setting up the storyboard
AddNewViewController
FoodDetailViewController
MyFoodsViewController
Summary
5. Creating and Saving User Data
Picking up where we left off
The navigation bar style
Adding our button action
Adding buttons to our navigation bar
Adjusting our storyboard view
Adding our delegates
Using a tap gesture
Getting the image from UIImagePickerController
Adding the text field delegate
Saving the data
Getting the date string
Adding validation
Saving the image
Creating versus loading the .plist file
Adding a new entry
Summary
6. Displaying User Data
Custom cell
Building the cell
Connecting the cell
Creating properties
Adding food
Preparing the table view
Loading data
Displaying data
Showing the detail view
Coding the detail view
Creating blurred images
Finishing our detail view
Pushing the detail view
Summary
7. Manipulating Text with TextKit
What is TextKit?
Dynamic type
Handling updates
Exclusion paths
Adding letterpress
Text formatting
Making text bold and italicizing
Underlining text
Summary
8. Adding Physics with UIKit Dynamics
Motion and physics in UIKit
UIKit Dynamics
Motion effects
Adding gravity
UIDynamicAnimator
UIGravityBehavior
Behavior properties
Creating boundaries
Collisions
Creating invisible boundaries
Dynamic items
Manipulating item properties
Collision notifications
Attaching items to other items
Snapping items
Using motion in our app
Summary
Index
Application Development in iOS 7
Application Development in iOS 7
Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either expressed or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: May 2014
Production Reference: 1120514
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78355-031-9
www.packtpub.com
Cover Image by Pratyush Mohanta (<tysoncinematography@gmail.com>)
Credits
Author
Kyle Begeman
Reviewers
Arnaud Coomans
Jayant C. Varma
Dmitry Volevodz
Commissioning Editor
James Jones
Acquisition Editor
James Jones
Content Development Editor
Rikshith Shetty
Technical Editors
Pramod Kumavat
Mukul Pawar
Copy Editors
Sarang Chari
Adithi Shetty
Project Coordinator
Harshal Ved
Proofreaders
Stephen Copestake
Maria Gould
Paul Hindle
Indexer
Mehreen Deshmukh
Graphics
Yuvraj Mannari
Production Coordinators
Kyle Albuquerque
Conidon Miranda
Cover Work
Conidon Miranda
About the Author
Kyle Begeman is a self-taught programmer, entrepreneur, and educator. With over five years of experience in iOS development, he has produced multiple applications, mostly with large businesses. He frequently produces educational videos and text for others to learn how to program. A self-proclaimed nerd living in the Silicon Valley, Kyle Begeman spends most of his free time listening to/playing music and thinking up the next great project! You can visit his website at www.kylebegeman.com.
For my wife, Kelli. You inspire me every day on our journey through life.
About the Reviewers
Arnaud Coomans is a senior iOS engineer. He has developed various applications, both for iPhone and iPad, and regularly contributes to open source projects. He enjoys reverse engineering, writing libraries, and writing Xcode plugins.
After working for different startups, including his own, Arnaud Coomans is now working on mobile applications for one of the biggest companies in Silicon Valley.
I would like to thank my family and friends for their help and support.
Jayant C. Varma is an Australian author, developer trainer, and consultant with a special focus on mobile development and the use of mobile applications in business. He is the author of the book Learn Lua for iOS Game Development, Apress, and is the Principal Consultant at OZ Apps, a company he founded, specializing in mobile business solutions.
He has been in the IT industry for quite a while and has seen things change from 8-bit computers to 64-bit mobile devices. He has been drawn towards new technology and Usable UI (user friendly and appealing). He has had several roles earlier that have seen him in different countries as the IT Manager for BMW dealerships working on wireless diagnostics and contactless key readers, among other things, to lecturing at the James Cook University and being actively involved with training and workshops for the Apple University Consortium (AUC) and Australian Computer Society (ACS). Among the well-known apps that he, as a developer, has created is the text-based adventure, Z-Day Survival Simulator application.
He has been a reviewer on a couple of Packt Publishing books based on iOS usage and development. He runs a few blogs on development, such as http://howto.oz-apps.com and http://LearnLua.oz-apps.com, among others.
Dmitry Volevodz is an experienced iOS developer. He has been doing freelance software development for a few years, but has now settled in a small company. He does enterprise iOS development, and game development is his hobby. He has written iOS 7 Game Development, Packt Publishing, a title about game development with Sprite Kit.
I thank my wife Olesya for her patience and my son.
www.PacktPub.com
Support files, eBooks, discount offers, and more
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via web browser
Free access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
Preface
Welcome to Application Development in iOS 7. With the release of iOS 7, Apple has completely changed the way we developers think about mobile application design and development. In addition to a complete visual overhaul, iOS 7 offers hundreds of new API and SDK improvements as well as a completely revamped development environment, Xcode 5. This book will walk you through a step-by-step process of