TIENE EN SU CESTA DE LA COMPRA
en total 0,00 €
In just 24 sessions of one hour each, learn how to build powerful applications for today's hottest handheld devices: the iPhone and iPad! Using this book's straightforward, step-by-step approach, you'll master every skill and technology you need, from setting up your iOS development environment to building great user interfaces, sensing motion to writing multitasking applications. Each lesson builds on what you've already learned, giving you a rock-solid foundation for real-world success!
Step-by-step instructions carefully walk you through the most common iOS development tasks.
Quizzes and Exercises help you test your knowledge.
By the Way notes present interesting information related to the discussion.
Did You Know? tips show you easier ways to perform tasks.
Watch Out! cautions alert you to possible problems and give you advice on how to avoid them.
John Ray is currently serving as the Director of the Office of Research Information Systems at the Ohio State University. His many books include Using TCP/IP: Special Edition, Maximum Mac OS X Security, Mac OS X Unleashed, Teach Yourself Dreamweaver MX in 21 Days, and Sams Teach Yourself iOS 7 Application Development in 24 Hours.
Printed in full color-figures and code appear as they do in Xcode
Covers iOS 8 and up
Learn to navigate the Xcode 6.x development environment
Prepare your system and iDevice for efficient development
Get started quickly with Apple's new language: Swift
Test code using the new iOS Playground
Understand the Model-View-Controller (MVC) development pattern
Visually design and code interfaces using Xcode Storyboards, Segues, Exits, Image Slicing, and the iOS Object Library
Use Auto Layout and Size Classes to adapt to different screen sizes and orientations
Build advanced UIs with Tables, Split Views, Navigation Controllers, and more
Read and write preferences and data, and create System Settings plug-ins
Use the iOS media playback and recording capabilities
Take photos and manipulate graphics with Core Image
Sense motion, orientation, and location with the accelerometer, gyroscope, and GPS
Integrate online services using Twitter, Facebook, Email, Web Views, and Apple Maps
Create universal applications that run on both the iPhone and iPad
Write background-aware multitasking applications
Trace, debug, and monitor your applications as they run
Introduction 1
HOUR 1: Preparing Your System and iDevice for Development 5
Welcome to the iOS Platform . . . . . . . 5
Becoming an iOS Developer . . . . . . . . . . . . . . . . . . . . . . . . . 9
Running an iOS App . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Developer Technology Overview . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . 23
Further Exploration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Workshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
HOUR 2: Introduction to Xcode and the iOS Simulator 29
Using Xcode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Using the iOS Simulator . . . . . . . . . . . . . . . . . . . . . . . . 63
Further Exploration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Summary . . . . . . . . . . . . . . . . . . . . . . . . . 71
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Workshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
HOUR 3: Discovering Swift and the iOS Playground 77
Object-Oriented Programming and Swift . . . . . . . . . . . . . . . .. . . . . . . . . . . 77
The Terminology of Object-Oriented Development . . . . . . . . . . . . . . . .. . . . . . . . . 79
Exploring the Swift File Structure . . . . . . . . . . . . . . . . . . . . . . . . . 82
Swift Programming Basics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Memory Management and Automatic Reference Counting . . . . . . . . . . . . . . . 107
Introducing the iOS Playground . . . . . . . . . . . . . . . . . . . . . . . . 108
Further Exploration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Q&A . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Workshop . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Activities . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
HOUR 4: Inside Cocoa Touch 117
What Is Cocoa Touch? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Exploring the iOS Technology Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Tracing the iOS Application Life Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Cocoa Fundamentals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Exploring the iOS Frameworks with Xcode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Further Exploration . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . 143
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Q&A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Workshop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Activities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
HOUR 5: Exploring Interface Builder 147
Understanding Interface Builder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Creating User Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
Customizing the Interface Appearance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Connecting to Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170