swift--Interactive Publishing Network for busy people

Source: Internet
Author: User

This article is a computer class of high-quality pre-sale recommendation >>>>"for busy people see Swift"


Editorial recommendations

This book is designed for swift learners and developers of all levels to read, including developers with OBJECTIVE-C development experience, anyone interested in swift programming enthusiasts, etc. For those who want to quickly understand and master Swift, "Swift for busy People" is a rare book of pillow-side reading.


Content Introduction

This book provides a comprehensive overview of Apple's new Swift programming language. The main content includes a brief introduction to Swift syntax, a common object model in swift applications, the use of nullable types, generics, functions and closures, the security of Swift code, how to use the existing framework of OBJECTIVE-C and Apple platforms in swift, how to take advantage of Swift And its new features to create an application and so on. The book author Matt Henderson and Dave Wood are IOS and
A leading developer of OS X, who used concise language to introduce Swift's knowledge. The book contains a lot of practical code and after-school exercises, through the combination of theory and practice to help readers quickly grasp the main functions and usage of Swift.


Directory

1th Swift Introduction 1
1.1 Basic Syntax 4
1.1.1 Variables and Constants 4
1.1.2 String Interpolation 7
1.1.3 Process Control 8
1.2 Basic data Types
1.2.1 Integral type
1.2.2 Double and float
1.2.3 Boolean type
1.2.4 String
1.2.5 Array
1.2.6 Dictionary
Exercise
The 2nd chapter in-depth study of Swift grammar
2.1 Nullable Type
2.2 Generics
2.3 Type declarations and type inference
2.4 Functions and closures
2.4.1 Global Function
2.4.2 Nested function

2.4.3 Closure Expression 35
2.5 RMB Group 36
2.6 Switch statement and pattern matching 38
Exercise 41
Chapter 3rd objects and Classes 43
3.1 Enumeration 46
Class 3.2 51
3.3 Structure 55
3.4 Inheritance 57
3.5 Overload 58
3.6 Rewrite 60
3.7 Initialization 61
3.8 Properties 63
3.8.1 Computed type attribute 65
3.8.2 Attribute Observer 66
3.8.3 Delay Attribute 68
3.9 Subscript 69
3.10 Protocol 71
3.11 Extension 73
3.12 Access Control 74
Directory
XX to busy people see Swift
Exercise 79
Chapter 4th Nullable Type 81
4.1 Nullable types and nil 84
4.2 Validation Check, nullable binding, and forced unpacking 86
4.3 Nullable chain 89
4.4 Nullable 94 with an implicit unpacking
Exercise 96
5th generic 99
5.1 Why generics are used 102
5.2 Generic Function 102
5.2.1 type parameter 103
5.2.2 using more than one type parameter 104
5.3 Generic type 104
5.3.1 Association Type 108
5.3.2 WHERE clause 110
Exercise 111
6th chapter functions and Closures 113
6.1 Functions 116
6.1.1 Parameter 116
6.1.2 External Parameter name 117
Default value of 6.1.3 parameter 119
6.1.4 variable parameters and InOut parameters 120
6.1.5 return type 121
6.2 Closure Pack 123
6.2.1 parameter and type inference of return value 124
6.2.2 Trailing Closure Pack 125
6.3 Functional Programming 126
Exercise 129
The 7th Chapter uses OBJECTIVE-C 131
7.1 Dealing with C and objective-c APIs 134
7.1.1 Nullable property and return value 135
7.1.2 Anyobject Type 137
7.1.3 inheritance, extension, and Protocol 138
7.1.4 Automatic conversion type 139
7.1.5 Selector and Enumeration 142
7.1.6 interacting with C code 143
7.2 Using both swift and OBJECTIVE-C code 144 in your project
Exercise 147
8th Common Mode 149
8.1 Nested type 152
8.2 Single Example 153
8.3 Using GCD 154
8.3.1 Dispatch_once 155
8.3.2 Dispatch_async 155
8.3.3 Dispatch_after 156
8.3.4 dispatch_apply 156
8.4 Sequences and generators 157
8.5 operator 161
8.5.1 operator Overloading 162
8.5.2 Custom Operator 163
Exercise 164
Index 165


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

swift--Interactive Publishing Network for busy people

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.