资源说明:raywenderlich的精品,swift学习必备
目录:
Chapter 1, Language Basics 1: Variables, constants, types, equality, strings, control flow and more—get off the ground with the language essentials.
Chapter 2, Language Basics 2: Optionals and collections: more essentials that you’ll use in everyday Swift code.
Chapter 3, Classes & Structs: Data structures like classes and structs are at the heart of any object-oriented language. This is the first chapter where you’ll build a full-featured iOS app.
Chapter 4, Generics: In C++ it’s called templates; in Swift it’s called generics: Generic programming allows you to write an algorithm once and reuse it for multiple types. In this chapter, you’ll learn about generics by building a Flickr searching app.
Chapter 5, Functions & Closures: It’s hard to write code without using functions! Closures are a related topic. (Spoiler alert—in Swift, they’re just unnamed functions!)
Chapter 6, Enums & Switch Statements: Swift introduces extremely powerful enum types. Switch statements are crucial to unlocking their potential.
Chapter 7, Functional Programming: Functional programming is a popular topic right now—quite a departure from more traditional, imperative programming. Swift builds this paradigm right into the core of the language.
Chapter 8, Swift & Cocoa: 90% of iOS development is interfacing with the Cocoa frameworks—this remains true. This chapter illustrates how you will work with Cocoa in Swift; you’ll also see how bridging headers work so you can continue to use Objective-C code and libraries in Swift.
Chapter 9, Swift vs. Objective-C: Existing Objective-C developers will be wondering what’s different with Swift, or how to do their favorite things using Swift. In this chapter, you’ll re-implement an Objective-C app in Swift to compare and contrast the two languages.
Chapter 10, Language Quick Reference: As you’re coding your own Swift applications, you can refer back to this reference to remind yourself how something works.
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。