Developing iOS 10 Apps with Swift: Introduction to iOS 10, Xcode 8 and Swift 3

1、和macOS一样,iOS是基于UNIX的操作系统

2、iOS主要由以下几个部分组成:

Core OS(核心操作系统):OSX Kernel,Power Management,Mach3.0,Keychain Access,BSD,Certificates,Sockets,File system,Security,Bonjour

Core Services(核心服务):Collection,Core Location,Address Book,Net Services,Networking,Threading,File Access,Preferences,SQLite,URL Utilities

Media(影音):Core Audio,JPEG\PNG\TIFF,OpenAL,PDF,Audio Mixing,Quartz(2D),Audio Recording,Core Animation,Video Playback,OpenGL ES

Cocoa Touch(交互):Multi-Touch,Alerts,Core Motion,Web View,View Hierarchy,Map Kit,Localization,Image Picker,Controls,Camera

3、instance variables and methods,class中的变量和函数称为实例变量和方法

4、var定义变量   let定义常量

5、String?表示可选字符串类型,可选类型是Swift中一种特殊类型,对于可选类型需要用!进行强制解包。

6、可选类型如果没有缺省值,强制解包将导致程序崩溃

7、所有类型和方法必须初始化,可选类型后加?可以赋予缺省值

你可能感兴趣的:(Developing iOS 10 Apps with Swift: Introduction to iOS 10, Xcode 8 and Swift 3)