The professional programmer's Deitel® guide to iPhone® and iPad® app development using iOS® 8, Swift™, Xcode® 6, and Cocoa Touch®
Billions of apps have been downloaded from Apple's App Store! This book gives you everything you'll need to start developing great iOS 8 apps quickly using Swift—Apple's programming language of the future. You'll also learn what makes a great app and how to publish your apps in the App Store. The book uses an app-driven approach—each new technology is discussed in the context of seven fully tested iOS 8 apps, complete with syntax shading, code highlighting, code walkthroughs and sample outputs. Apps you'll develop:
- Tip Calculator
- Twitter® Searches
- Flag Quiz
- Cannon Game
- Address Book
Practical, Example-Rich Coverage of:
- iOS® 8, XCode® 6, Swift™
- Object-Oriented Programming with Swift™ and Cocoa Touch®
- UI Design, Storyboards, Auto Layout, Outlets, Outlet Collections, Actions
- View Controllers, Views, View Animations
- Event Handling, Multi-Touch
- Single View, Master-Detail, Game Templates
- Accessibility, Internationalization
- Core Data Database Access
- User Defaults, iCloud Key–Value Storage
- Social Framework Sharing
- SpriteKit Game Programming: Animation, Graphics, Physics, Collision Detection
- Accelerometer and Motion Event Handling
- Grand Central Dispatch
- App Store, Pricing, Monetization and more.
COMMENTS FROM THE REVIEWERS
"Excellent writing style which when combined with fantastic real world examples provides for a wonderful learning experience. The use of proper app-quality code examples designed to reflect the new style of Swift coding makes this very detailed book a joy to read. The iOS development book for the serious Swift developer. Provides solid, real-world apps, which are ready for the App Store. The book's excellent writing style takes the skilled user on a line-by-line analysis of the complexities of iOS 8 programming, dealing with such subjects as UIKit, SpriteKit, Core Data and internationalization. Easily the best tutorial on Storyboards I've ever read. This text will never be far from the professional programmer's side and provides so much more than a regurgitation of existing reference documentation or basic "cookbook" examples. One of the best books on the subject and a must-have for any developer's bookcase. Now completely updated to cover Swift and iOS8, this series really has turned into the definitive iOS developers guide."
—Rik Watson, Technical Team Lead, HP Enterprise Services
"A comprehensive companion for those new to iOS development as well as experienced Objective-C developers looking to learn Swift, Apple's newest language. You'll build seemingly complex projects, including a cannon game and a paint app. But you'll quickly realize, that with the Deitels' writing and app-driven approach, and with the iOS frameworks, building these apps is a piece of cake. The Cannon Game App is an interesting and engaging introduction to iOS game development with SpriteKit. You'll learn basics of game design, including how to blend physics, sound, and animation. You can even use the sample code in your own app since it's under a Creative Commons license."
—Scott Bossak, Thrillist Media Group
“The Deitels have written a guide book that will give developers new to iOS or the Swift programming language a solid ground stone from which to build their own apps. Each chapter is based on an app, many of which could rightly be in the App Store, and they take you through that app step by step. In no time at all you'll feel confident about stepping out on your own developing apps targeting Apple's latest mobile OS, iOS 8, using Xcode 6 and Apple's new programming language Swift. You will touch on storing data between runs using NSUserDefaults and synchronising data using iCloud. And you will take advantage of executing tasks in parallel with Grand Dispatch, write a game with SpriteKit using physics, learn the magic of Auto Layout and much more."
—Robert McGovern, Indie Developer
"iOS 8 for programmers is a great book to get you up and running with iOS programming. Each chapter will teach you how to build an app from scratch. From the simple Tip Calculator app, all the way through to a fun game which will have you learning about SpriteKit. This book explains everything through the use of real-world examples. The writing is easy to read, giving step-by-step guidance alongside screenshots. This makes understanding complicated topics such as Auto Layout a breeze. I was particularly impressed by the fact that this book gives a good overview of localization and accessibility. Both are things which all iOS developers will need to use at some point. The book also covers the business of apps—something that I've not seen other books do. Overall, this book is going to suit you well if you're new to iOS programming with Swift and want to dive straight in."
—Matt Galloway, iOS Developer and author of Effective Objective-C 2.0
"In the Introduction, the history of the sales numbers of all the different versions serves as motivation. I liked the Twitter Searches app—you did a good job stepping through the process to get the storyboard setup. I liked the Flag Quiz project. I liked your design for handling the various screen sizes in the Cannon Game app. Lots of good information in the App Store and App Business Issues chapter."
—Michael Haberman, Software Engineer, Instructor at University of Illinois
"I honestly feel that the Welcome app is pretty much perfect. It is a solid introduction to Xcode's UI—one of the best I’ve read. The coverage of localization and accessibility is also a good start and it’s nice that you introduce these ideas at the beginning of the book. The Tip Calculator app is a really solid chapter—I think the reader will get a real sense of achievement by the time they get to the end of it, particularly having an app that looks like it fits in with the OS. I like getting the data from the filenames in the Flag Quiz app—it’s a handy trick. The Cannon Game app chapter lays a solid foundation for building games— the coverage of physics is good—it alludes to the power available without being overwhelming. Doodlz app is an excellent chapter—it takes a seemingly daunting app to attempt (and something you might see in the App Store) and makes it look easy; the descriptions are clear and to the point. I really like the sections on monetizing and marketing your apps; there is a lot of useful content there and the links are invaluable."
—Robert McGovern, Indie Developer
"The Cannon Game app is an excellent example with great code—I couldn’t find anything to criticise. The Doodlz app is an excellent chapter."
—Rik Watson, Technical Team Lead for HP Enterprise Services (Applications Services)
"I have reviewed a lot of chapters for many publishers—Twitter Searches is the first time I have managed to go through without any substantive comments—great job."
—Charles Brown, Independent Contractor Affiliated with Apple and Adobe