iOS 9 SDK Development
Creating iPhone and iPad Apps with Swift
by Chris Adamson with Janie Clayton
Version: P2.0 (August 2016)
Copyright 2016 The Pragmatic Programmers, LLC. This book is licensed to the individual who purchased it. We don't copy-protect it because that would limit your ability to use it for your own purposes. Please don't break this trustyou can use this across all of your devices but please do not share this copy with other members of your team, with friends, or via file sharing services. Thanks.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and The Pragmatic Programmers, LLC was aware of a trademark claim, the designations have been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf and the linking g device are trademarks of The Pragmatic Programmers, LLC.
Every precaution was taken in the preparation of this book. However, the publisher assumes no responsibility for errors or omissions, or for damages that may result from the use of information (including program listings) contained herein.
About the Pragmatic Bookshelf
The Pragmatic Bookshelf is an agile publishing company. Were here because we want to improve the lives of developers. We do this by creating timely, practical titles, written by programmers for programmers.
Our Pragmatic courses, workshops, and other products can help you and your team create better software and have more fun. For more information, as well as the latest Pragmatic titles, please visit us at http://pragprog.com.
Our ebooks do not contain any Digital Restrictions Management, and have always been DRM-free. We pioneered the beta book concept, where you can purchase and read a book while its still being written, and provide feedback to the author to help make a better book for everyone. Free resources for all purchasers include source code downloads (if applicable), errata and discussion forums, all available on the book's home page at pragprog.com. Were here to make your life easier.
New Book Announcements
Want to keep up on our latest titles and announcements, and occasional special offers? Just create an account on pragprog.com (an email address and a password is all it takes) and select the checkbox to receive newsletters. You can also follow us on twitter as @pragprog.
About Ebook Formats
If you buy directly from pragprog.com, you get ebooks in all available formats for one price. You can synch your ebooks amongst all your devices (including iPhone/iPad, Android, laptops, etc.) via Dropbox. You get free updates for the life of the edition. And, of course, you can always come back and re-download your books when needed. Ebooks bought from the Amazon Kindle store are subject to Amazon's polices. Limitations in Amazon's file format may cause ebooks to display differently on different devices. For more information, please see our FAQ at pragprog.com/frequently-asked-questions/ebooks. To learn more about this book and access the free resources, go to https://pragprog.com/book/adios3, the book's homepage.
Thanks for your continued support,
Dave Thomas and Andy Hunt
The Pragmatic Programmers
The team that produced this book includes: Rebecca Gulick (editor) Potomac Indexing, LLC (indexer) Liz Welch (copyeditor) Dave Thomas (layout) Janet Furlow (producer)
For customer support, please contact .
For international rights, please contact .
Table of Contents
Copyright 2016, The Pragmatic Bookshelf.
Acknowledgments
One of these years, well be able to do a book where the information stays good for longer than a year, right? If so, apparently it wont be about iOS. Once again, Apples annual update of its mobile OS and tools has unleashed a torrent of changes. At this point, its not even a question of leaving last years book on the shelf for a while longer; last years code doesnt even compile anymore .
So, for this book being in your hands or on your screen, thanks start with the Pragmatic Programmers.Working with the Prags themselves, Dave and Andy, and Susannah Pfalzer, recognized the need for the Prags introductory book on iOS to become an annual thing, if its to be a viable title and serve as a prerequisite for other Prags iOS titles. Together, we worked out a plan that would make for a book with enough new content and revisions to be worthy of a new release, without killing the primary author by trying to get 300 pages out of him in five months (while holding down a day job). Of course, that still wouldnt have been possible without the support of editor Rebecca Gulick, who helped keep everything on track, caught lots of mistakes, and had a keen ear for when the prose needed to stop info-dumping and work more intuitively with the reader.
Thanks also go out to friends and colleagues in the Mac/iOS (and watchOS and tvOS) development community, who helped out with questions, feedback, and encouragement on Twitter and IRL at conferences like WWDC and CocoaConf. Speaking of CocoaConf, thanks as always to Dave Klein and his family for putting on that traveling event, which is still my favorite way to meet fellow developers and catch up on the state of the art of iOS programming, outside of Apples official channels.
Speaking of conferences, Janie spent most of the summer and fall putting together ambitious new talks for CocoaConf, 360iDev, and CocoaLove, so she was quite limited in what she could contribute to the book this time around. Still, weve incorporated all her work from the previous book, and updated it for iOS 9, and she did give us a new story sidebar about her continuing development as an iOS developer. Its been great to watch her career take off over the last few years, and if you see her speaking at a conference near you, be sure to go see her.
Once again, the Prags beta book process allowed us to roll out a mostly complete book for early feedback as soon as Apples NDA dropped, allowing us to make improvements and corrections while finishing up the last few chapters. The books tech reviewers also gave us great feedback to build on: thanks to Jacob Chae, Kevin Garriott, Gbor Lszl Hajba, Laura Hart, Carlos Lopez, Wil Moore III, Mario Tatis, and Stephen Wolff.
As always, thanks to family members who got used to the office door being closed and the headphones blocking everything out while I banged away in TextMate and Xcode (and sometimes banged on my desk because of the latter) for too many evenings and weekends.
Obligatory end-of-book music check: This time it was Metric, Joe Jackson, Dire Straits, Minami Kuribayashi, Yuki Kajiura, and Scandal (the one from Japan, not the one from the 80s). Current musical stats at http://www.last.fm/user/invalidname.
Copyright 2016, The Pragmatic Bookshelf.
Early praise for iOS 9 SDK Development
I like this book. I like its approach to building something real in Swift. The result is an app that feels good and is useful. Along the way, you learn the basics of iOS development from an experienced pro. Highly recommended.
Eric J. Knapp |
Program Director, Mobile Applications Development, Madison College |
iOS 9 SDK Development is the perfect book to get your feet wet with iOS. The authors introduce you to iOS by way of Swift, giving you cutting-edge skills at the perfect time. Whether youre new to programming or simply new to Apple platforms, this book will leave you ready to create your own amazing apps.