Book description
Get started fast with Swift 2 programming for iOS and OS X
Learning Swift 2 Programming is a fast-paced, hands-on
introduction to writing production-quality iOS and OS X apps with
Apple’s programming language. Written for developers with
experience in any modern language, this book explains Swift simply
and clearly, using relevant examples that solve realistic
problems.
Author Jacob Schatz’s popular YouTube video tutorials have
already helped thousands of Apple developers get started with
Swift. Now, he helps you take full advantage of Swift’s
advanced design, remarkable performance, and streamlined
development techniques.
Step by step, you’ll move from basic syntax through advanced
features such as closures and generics—discovering helpful
tips and tricks along the way. After you’ve mastered
Swift’s building blocks and learned about its key
innovations, a full section of case studies walks you through
building complete apps from scratch.
Learn how to:
Compare Swift with Objective-C, JavaScript, Python, Ruby, and C
Collect data with arrays and dictionaries, and store it with variables and constants
Group commonly used code into functions for easy reuse
Structure your code with enums, structs, and classes
Use generics to get more done with less code
Write closures to share small blocks of functionality
Use optionals to write more robust, crash-resistant, and cleaner code
Integrate existing Objective-C code into new Swift apps
Program on the bit and byte levels with advanced operators
Implement efficient design patterns with protocols and delegates
Create animated 2D games with SpriteKit, and apps with UIKit
Table of contents
- About This E-Book
- Title Page
- Copyright Page
- Contents at a Glance
- Table of Contents
- About the Author
- Dedication
- Acknowledgments
- We Want to Hear from You!
- Reader Services
- Introduction
- 1. Getting Your Feet Wet: Variables, Constants, and Loops
- 2. Collecting Your Data: Arrays and Dictionaries
- 3. Making Things Happen: Functions
- 4. Structuring Code: Enums, Structs, and Classes
- 5. SpriteKit
- 6. Reusable Code: Closures
- 7. Creating Your Own Syntax: Subscripts and Advanced Operators
- 8. Protocols
- 9. Becoming Flexible with Generics
- 10. Games with SpriteKit
- 11. Making Games with Physics
- 12. Making Apps with UIKit
- Index
- Code Snippets
Product information
- Title: Learning Swift 2 Programming, Second Edition
- Author(s):
- Release date: December 2015
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780134431642
You might also like
book
Reactive Programming with Swift 4
Learn how to solve blocking user experience and build event based reactive applications with Swift. About …
book
iOS 13 Programming Fundamentals with Swift
Move into iOS development by getting a firm grasp of its fundamentals, including the Xcode 10 …
book
Swift: Developing iOS Applications
Unleash the power of Swift and discover the skills required to build incredible robust iOS applications …
book
iOS Swift Game Development Cookbook, 3rd Edition
Ready to make amazing games for the iPhone and iPad? With Apple’s Swift programming language, it’s …