Let's say you have a killer app idea for iPhone and iPad. Where do you begin? Head First iPhone and iPad Development will help you get your first application up and running in no time. You'll not only learn how to design for Apple's devices, you'll also master the iPhone SDK tools—including Xcode—and Objective-C programming principles to make your app stand out.
Whether you're a seasoned Mac developer who wants to jump into the App store, or someone with strong object-oriented programming skills but no Mac experience, this book is a complete learning experience for creating eye-catching, top-selling iPhone and iPad applications.
- Install the iPhone OS SDK and get started using XCode
- Put Objective-C core concepts to work, including message passing, protocols, properties, and memory management
- Take advantage of iPhone OS patterns such as datasources and delegates
- Preview your applications in the Simulator
- Build more complicated interactions that utilize multiple views, data entry/editing, and rotation
- Work with the iPhone's camera, GPS, and accelerometer
- Optimize, test, and distribute your application
We think your time is too valuable to waste struggling with new concepts. Using the latest research in cognitive science and learning theory to craft a multi-sensory learning experience, Head First iPhone and iPad Development has a visually rich format designed for the way your brain works, not a text-heavy approach that puts you to sleep.
Table of contents
- Advance Praise for Head First iPhone and iPad Development
- Praise for other Head First books
- Praise for other Head First books
- Authors of Head First iPhone and iPad Development
- Coauthors of Head First iPhone and iPad Development
How to use this book: Intro
- Who is this book for?
- We know what you’re thinking
- We know what your brain is thinking
- Metacognition: thinking about thinking
- Here’s what WE did:
- Here’s what YOU can do to bend your brain into submission
- Read Me
- System requirements
- The technical review team
1. Getting Started: Getting mobile with iOS
- So you want to build an iOS app...
- Welcome to the Apple universe!
- iOS apps are written in Objective-C
- It all starts with the SDK
- Pin Xcode...you’re going to be here a lot
- Meet Sue, your new boss
- Xcode and Git...new best friends
- Xcode is the hub of your iOS project
- The iOS simulator
- Your code is stored in source files
- Code Editor, Hub...and debugging, too
- One iPhone, two iPhones, red iPhone, blue iPhone...
- Your iPhone Development toolbox
2. Basic iOS Patterns: Building from scratch
- iOS apps run full screen, but there’s a lot going on
- Model-View-Controller is a design pattern
- Get started with Xcode and Git
- Design time!
- Design time...redux
- Cosmetic changes are easy in Xcode
- You could code this if you’re into that kind of thing...
- iOS controls are more than skin deep
- You’ll create the action using the Xcode GUI editor
- Connect your controls to your actions
- So how do we get to that text?
- Properties handle creating getters and setters
- Create a property for that text field
- You connect your controls to outlets
- Twitter, the easy way...
- Your iOS Basics toolbox
- 3. Interlude: Syntax
4. Tables, Views, and Data: A table with a view
- SpinCity browsing app overview
- The way iOS apps work
- Using the touch screen....
- Hierarchical data—get out your table view
- We need to hook these views together...
- Three views in one template
- Use MVC to separate your concerns...
- Adding a new class
- Properties expose class attributes
- Data Access Objects hide low-level data access
- You’ve built your DAO!
- A table is a collection of cells
- Your View toolbox
5. Multiview Applications: It’s all about the details
- An app with a view...
- Table views don’t always look like...tables
- Change your UIViewController to a UITableView Controller
- Layout for the new detail view
- Layout your view within the storyboard
- Design the rest of the view dynamically
- Segues connect view controllers
- Connect your scenes in your storyboard
- Segues let you prepare for a new scene
- Update your prepareforSegue callback
- There’s an app a list for that
- Create a new property list
- You need to load each album from the plist
- Convert your data to plists in one easy step
- Your View toolbox
6. The Review Process, Design, and Devices: How to live with
- It’s Apple’s world...you’re just living in its world...you’re just living in it
- Device checking... it’s not optional
- Device checking case study: the camera
- iOS handles the heavy lifting
- Hmmm... supported device, missing feature
- The HIG helps, rather than hurting you
- You’ve already gotten used to the HIG...
- Design = look + feel
- iOS 7 Top 5
- More to think about: your iPad is not your iPhone
- Your Apple toolbox
7. Basic Core Data and Table View Cells: Reruns are hard to
- This is your application
- This is your application on data
- Introducing Core Data
- ...and speaking of data
- The Gilligizer app
- Core Data starts with...data
- Core Data works with entities
- Core Data describes entities with a Managed Object Model
- Build your Show entity
- Our generated Show class matches our Managed Object Model
- NSManagedObject also implements the properties
- You have an object...now present it.
- Present each entity in Gilligizer
- Your Core Data toolbox
8. Implementing search with core data: Looking for info
- The app is working, but it’s limited...
- Use an NSFetchRequest to describe your search
- Let’s give it a shot...
- iOS 7 has Core Data and UIKit support for searching
- SearchDisplayController handles just about everything
- Use predicates for filtering data
- The NSFetchRequest predicate controls what data is returned
- It was a trick question...
- Your searching toolbox
9. Core data, mapkit, and core location: Finding a phone booth
- Everything old is cool new again
- An app, an iPad, and a phone booth
- iOS apps are read-only (well, kind of...)
- An iOS application structure defines where you can read and write data
- Enter... UIImagePicker
- Prompt the user with action sheets
- Where Who... are you? Where Who, who?
- Core Location can find you in a few ways
- Map Kit comes with every iOS device
- Annotations require a little more work finesse
- Fully implement the annotation protocol
- Your kit Toolbox
- About the Authors
- Title: Head First iPhone and iPad Development, 3rd Edition
- Release date: December 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449316570
You might also like
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
Fundamentals of Software Architecture
Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …
Head First jQuery
Want to add more interactivity and polish to your websites? Discover how jQuery can help you …
Head First C#, 4th Edition
What will you learn from this book? Ready to dive into C#? This practical guide provides …