实例介绍
【实例截图】
【核心代码】
Table of contents Introduction About Swift About the book Part I. Introducing Xcode Chapter 1. The first steps eleven . You need a Mac computer 12 . Sign up as an Apple developer thirteen . Install Xcode Chapter 2 . Xcode environment and playground projects 2 .1. Introduction to Xcode 2 .2. Playground project interface 2 .3. Playground project capabilities Part II. Basic Swift Features Chapter 3 . Starting point 3 .1. Setting and changing the value 3 .2. Variables and constants 3 .3. The rules for declaring variables and constants 3 .4. Display of text information 3 .5. Comments 3 .6. Semicolon Chapter 4 . Data types and operations with them 4 .1. Types of data type definition 4 .2. Numeric data types 4 .3. Text data types 4 .4. Boolean values 4 .5. Type aliases 4 .6. Comparison operators Part III. Fixed assets Swift Chapter 5. Tuples 5 .1. Basic information about tuples 5 .2. Interacting with elements of a tuple Chapter 6 . Optional data types 6 .1. Optionals 6 .2. Retrieving an optional value Chapter 7. Assertions Chapter 8 . Flow control. Branching 8 .1. Condition statement if 8 .2. Guard statement 8 .3. Range operators 8 .4. The branching operator switch Chapter 9. Types of collections 9 .1. Arrays 9 .2. Sets 9 .3. Dictionaries Chapter 10. Flow control. Repetitions 10 .1. The repetition operator for 10 .2. Repeat while and repeat while statements 10 .3. Cycle management Chapter 11 . Functions 11 .1. Function declaration 11 .2. Input parameters and return value 11 .3. Function body as value 11 .4. Nested functions 11 .5. Reloading functions 11 .6. Recursive function call Chapter 12 . Closures 12 .1. Functions as closures 12 .2. Closing expressions 12 .3. Implicit return value 12 .4. Abbreviated parameter names 12 .5. Closure variables 12 .6. Capturing variables 12 .7. Array sorting method Part IV. Non-trivial features of Swift Chapter 13 . OOP as a foundation 13 .1. Instances 13 .2. Namespaces Chapter 14 . Enumerations 14 .1. Enumeration syntax 14 .2. Associated parameters 14 .3. Switch statement for enumerations 14 .4. The associated member values of the enumeration 14 .5. Properties in enumerations 14 .6. Methods in enumerations 14 .7. Operator self 14 .8. Recursive enums Chapter 15. Structures 15 .1. Syntax for declaring structures 15 .2. Properties in structures 15 .3. Structure as a namespace 15 .4. Custom initializers 15 .5. Methods in structures Chapter 16. Classes 16 .1. Class syntax 16 .2. Class properties 16 .3. Class methods. 16 .4. Class initializers 16 .5. Nested types. Chapter 17 . Properties 17 .1. Property types. 17 .2. Control of receiving and setting values. 17 .3. Type properties. Chapter 18 . Subscripts 18 .1. Appointment of subscripts. 18 .2. Subscript syntax Chapter 19 . Inheritance 19 .1. Inheritance syntax 19 .2. Overriding inherited elements 19 .3. The preemptive final modifier 19 .4. Substitution of class instances 19 .5. Cast Chapter 20 . The aliases Any and AnyObject 20 .1. The alias is Any 20 .2. The alias is AnyObject. Chapter 21 . Initializers and Deinitializers. 21 .1. Initializers. 21 .2. Deinitializers. Chapter 22 . Removing instances and ARC 22 .1. Destruction of instances 22 .2. Memory leaks 22 .3. Automatic reference counting. Chapter 23 . Optional Chains 23 .1. Accessing properties through optional chaining 23 .2. Setting values through optional chains 23 .3. Accessing methods through optional chaining. Chapter 24 . Extensions 24 .1. Computed properties in extensions. 24 .2. Extension initializers. 24 .3. Methods in extensions. 24 .4. Subscripts in extensions. Chapter 25 . Protocols 25 .1. Required properties 25 .2. Required methods 25 .3. Required initializers 25 .4. Protocol as data type 25 .5. Extension and protocols 25 .6. Protocol inheritance 25 .7. Class protocols 25 .8. Composition of protocols Chapter 26 . Non-standard data types and retrieval reference information Chapter 27 . Generic templates 27 .1. Versatile functions 27 .2. Generic types 27 .3. Type constraints 27 .4. Generic extensions 27 .5. Related types Chapter 28 . Error processing 28 .1. Throwing errors 28 .2. Error processing 28 .3. Delayed cleanup actions. Chapter 29 . Non-trivial use operators 29 .1. Operator functions 29 .2. Custom operators
标签: Programming swift SW Pr mm
相关软件
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论