Learning Swift Programming - Jacob Schatz

Learning Swift Programming

(Autor)

Buch | Softcover
300 Seiten
2015
Addison-Wesley Educational Publishers Inc (Verlag)
978-0-13-395040-3 (ISBN)
31,95 inkl. MwSt
zur Neuauflage
  • Titel erscheint in neuer Auflage
  • Artikel merken
Zu diesem Artikel existiert eine Nachauflage
Get started fast with Swift programming for iOS and OS X

 

Learning Swift Programming is a fast-paced, hands-on introduction to writing production-quality iOS and OS X apps with Apple’s new programming language. Written for developers with previous experience in any other modern language, this book explains Swift simply and clearly, using relevant examples that solve realistic problems.

 

Author Jacob Schatz’s popular Skip Wilson video tutorials on YouTube 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.



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 level with advanced operators
Implement efficient design patterns with protocols and delegates
Create animated 2D games with SpriteKit, and 3D games with SceneKit

Contents at a Glance

1 Getting Your Feet Wet
Building Blocks of Swift
Optionals: A Gift to Unwrap
Tuples
Number Types and Converting Between Them
Coming to Swift from Objective-C and C

2 Collecting Data
Using Arrays
Modifying Arrays
Using Dictionaries

3 Making Things Happen: Functions
Defining Functions
More on Parameters

4 Structuring Code: Enums, Structs, and Classes
Enums
Structs

5 Making a Game
Building a User Interface (UI)
The Action-Packed View Controller

6 Reusable Code: Closures
What Are Closures?
Closures in Other Languages
How Closures Work and Why They’re Awesome

7 Subscripts and Advanced Operators
Writing Your First Subscript
Bits and Bytes with Advanced Operators
Customizing Operators
Making Your Own Operators
Bits and Bytes in Real Life

8 Protocols
Writing Your First Protocol
Animizable and Humanizable
Delegation
Protocols as Types
Protocols in Collections
Optional Chaining

9 Becoming Flexible with Generics
The Problem That Generics Solve

10 Games with SpriteKit
     Setting Up the Project
     The Start Screen
     Dangerous Ground
     A Hero to the Rescue
     Enemies in Motion
     Spawned Obstacles
     Smashing Physics

11 Games with SceneKit
  Creating DAE Files
     Creating a New SceneKit Project
     Your SceneKit Files
     Making the Game
  Bridging the Gap to Objective-C

12 Apps with UIKit
  Application Types
     Loading a Table View
     Loading Data from a URL

 

Jacob Schatz is a senior software engineer with more than eight years of experience writing code for the masses. His popular Skip Wilson YouTube channel has helped thousands of people around the world learn programming languages like Swift and Python. Though lately he has been deep into Swift, he also writes volumes of code in JavaScript, Python, Objective-C, and other languages. Jacob is always selectively consuming the latest programming trends. He has a passion for making a difference and is constantly solving problems. He is, at heart, an educator, and enjoys teaching and finding new ways to explain advanced concepts.

Introduction

1 Getting Your Feet Wet

Building Blocks of Swift
Optionals: A Gift to Unwrap
Tuples
Number Types and Converting Between Them
Coming to Swift from Objective-C and C

2 Collecting Data

Using Arrays
Modifying Arrays
Using Dictionaries

3 Making Things Happen: Functions

Defining Functions
More on Parameters

4 Structuring Code: Enums, Structs, and Classes

Enums
Structs

5 Making a Game

Building a User Interface (UI)
The Action-Packed View Controller

6 Reusable Code: Closures

What Are Closures?
Closures in Other Languages
How Closures Work and Why They’re Awesome

7 Subscripts and Advanced Operators

Writing Your First Subscript
Bits and Bytes with Advanced Operators
Customizing Operators
Making Your Own Operators
Bits and Bytes in Real Life

8 Protocols

Writing Your First Protocol
Animizable and Humanizable
Delegation
Protocols as Types
Protocols in Collections
Optional Chaining

9 Becoming Flexible with Generics

The Problem That Generics Solve

10 Games with SpriteKit

Setting Up the Project
The Start Screen
Dangerous Ground
A Hero to the Rescue
Enemies in Motion
Spawned Obstacles
Smashing Physics

11 Games with SceneKit

Creating DAE Files
Creating a New SceneKit Project
Your SceneKit Files
Making the Game
Bridging the Gap to Objective-C

12 Apps with UIKit

Application Types
Loading a Table View
Loading Data from a URL 

Erscheint lt. Verlag 15.1.2015
Verlagsort New Jersey
Sprache englisch
Maße 181 x 229 mm
Gewicht 420 g
Themenwelt Informatik Betriebssysteme / Server Macintosh / Mac OS X
Informatik Programmiersprachen / -werkzeuge Mac / Cocoa Programmierung
Informatik Software Entwicklung Objektorientierung
Informatik Weitere Themen Smartphones / Tablets
Technik Nachrichtentechnik
ISBN-10 0-13-395040-9 / 0133950409
ISBN-13 978-0-13-395040-3 / 9780133950403
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
Schritt für Schritt einfach erklärt

von Philip Kiefer

Buch | Softcover (2023)
Markt + Technik (Verlag)
19,95