From 38df437fe466de7d781fb64907131ccdd7c9d16a Mon Sep 17 00:00:00 2001 From: Vincent 4J Date: Tue, 11 Aug 2015 16:57:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B0=86=E7=BF=BB=E8=AF=91=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E5=A3=B0=E6=98=8E=E7=A7=BB=E5=88=B0=20h1=20=E4=B9=8B?= =?UTF-8?q?=E5=90=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/README.md | 50 +++++++++---------- source/chapter1/01_swift.md | 7 ++- source/chapter1/02_a_swift_tour.md | 8 +-- source/chapter1/03_revision_history.md | 6 +-- source/chapter2/01_The_Basics.md | 6 +-- source/chapter2/02_Basic_Operators.md | 6 +-- source/chapter2/03_Strings_and_Characters.md | 6 +-- source/chapter2/04_Collection_Types.md | 6 +-- source/chapter2/05_Control_Flow.md | 6 +-- source/chapter2/06_Functions.md | 6 +-- source/chapter2/07_Closures.md | 6 +-- source/chapter2/08_Enumerations.md | 6 +-- source/chapter2/09_Classes_and_Structures.md | 4 +- source/chapter2/10_Properties.md | 6 +-- source/chapter2/11_Methods.md | 6 +-- source/chapter2/12_Subscripts.md | 7 ++- source/chapter2/13_Inheritance.md | 6 +-- source/chapter2/14_Initialization.md | 7 ++- source/chapter2/15_Deinitialization.md | 6 +-- .../16_Automatic_Reference_Counting.md | 6 +-- source/chapter2/17_Optional_Chaining.md | 4 +- source/chapter2/18_Error_Handling.md | 6 ++- source/chapter2/19_Type_Casting.md | 6 +-- source/chapter2/20_Nested_Types.md | 6 +-- source/chapter2/21_Extensions.md | 6 +-- source/chapter2/22_Protocols.md | 6 +-- source/chapter2/23_Generics.md | 8 +-- source/chapter2/24_Access_Control.md | 6 +-- source/chapter2/25_Advanced_Operators.md | 6 +-- .../01_About_the_Language_Reference.md | 7 ++- source/chapter3/02_Lexical_Structure.md | 5 +- source/chapter3/03_Types.md | 6 +-- source/chapter3/04_Expressions.md | 6 +-- source/chapter3/05_Declarations.md | 8 +-- source/chapter3/06_Attributes.md | 6 +-- source/chapter3/07_Patterns.md | 6 +-- .../08_Generic_Parameters_and_Arguments.md | 6 +-- source/chapter3/09_Summary_of_the_Grammar.md | 6 +-- source/chapter3/10_Statements.md | 8 +-- source/chapter4/01_Access_Control.md | 4 +- source/chapter4/02_Type_Custom.md | 6 +-- source/chapter4/03_Ballons.md | 4 +- .../04_Interacting_with_C_Pointers.md | 6 +-- .../chapter4/05_Value_and_Reference_Types.md | 6 +-- .../06_Access_Control_and_Protected.md | 5 +- source/chapter4/07_Optional_Case_Study.md | 6 +-- 46 files changed, 161 insertions(+), 161 deletions(-) diff --git a/source/README.md b/source/README.md index 5504a0ec..9b5da07a 100755 --- a/source/README.md +++ b/source/README.md @@ -1,3 +1,5 @@ +# 2.0 新的开始 + > Swift 兴趣交流群:`131595168`, `146932759`, `151336833`, `153549217`. **加入一个群即可,请勿重复添加** > Swift 开发者社区 @@ -9,8 +11,6 @@ > 如果您觉得这个项目不错,请点击Star一下,您的支持是我们最大的动力。 -# 2.0 新的开始 - ## 1 开源项目完成难,维护更难。 @@ -51,28 +51,28 @@ 下次你再打开这篇文档,可以多看看那些列在最上方的ID,哪怕不去follow和star,只是看一眼就好。他们的所有努力和付出,就存在于这短暂的一瞥中。 -Swift 2.0 参与者名单(按照章节顺序): -- [xtymichael](https://github.com/xtymichael) -- [AlanMelody](https://github.com/AlanMelody) -- [DianQK](https://github.com/DianQK) -- [dreamkidd](https://github.com/dreamkidd) -- [100mango](https://github.com/100mango) -- [futantan](https://github.com/futantan) -- [SkyJean](https://github.com/SkyJean) -- [yangsiy](https://github.com/yangsiy) -- [shanksyang](https://github.com/shanksyang) -- [chenmingbiao](https://github.com/chenmingbiao) -- [Channe](https://github.com/Channe) -- [lyojo](https://github.com/lyojo) -- [SergioChan](https://github.com/SergioChan) -- [mmoaay](https://github.com/mmoaay) -- [buginux](https://github.com/buginux) -- [KYawn](https://github.com/KYawn) -- [EudeMorgen](https://github.com/EudeMorgen) -- [littledogboy](https://github.com/littledogboy) -- [Lenhoon](https://github.com/Lenhoon) -- [ray16897188](https://github.com/ray16897188) -- [wardenNScaiyi](https://github.com/wardenNScaiyi) -- [miaosiqi](https://github.com/miaosiqi) +Swift 2.0 参与者名单(按照章节顺序): +- [xtymichael](https://github.com/xtymichael) +- [AlanMelody](https://github.com/AlanMelody) +- [DianQK](https://github.com/DianQK) +- [dreamkidd](https://github.com/dreamkidd) +- [100mango](https://github.com/100mango) +- [futantan](https://github.com/futantan) +- [SkyJean](https://github.com/SkyJean) +- [yangsiy](https://github.com/yangsiy) +- [shanksyang](https://github.com/shanksyang) +- [chenmingbiao](https://github.com/chenmingbiao) +- [Channe](https://github.com/Channe) +- [lyojo](https://github.com/lyojo) +- [SergioChan](https://github.com/SergioChan) +- [mmoaay](https://github.com/mmoaay) +- [buginux](https://github.com/buginux) +- [KYawn](https://github.com/KYawn) +- [EudeMorgen](https://github.com/EudeMorgen) +- [littledogboy](https://github.com/littledogboy) +- [Lenhoon](https://github.com/Lenhoon) +- [ray16897188](https://github.com/ray16897188) +- [wardenNScaiyi](https://github.com/wardenNScaiyi) +- [miaosiqi](https://github.com/miaosiqi) 最后,感谢极客学院提供的wiki系统,在国内访问起来速度很快,优化后的样式看起来也更舒服。 \ No newline at end of file diff --git a/source/chapter1/01_swift.md b/source/chapter1/01_swift.md index f1c13a38..16313cbc 100755 --- a/source/chapter1/01_swift.md +++ b/source/chapter1/01_swift.md @@ -1,3 +1,6 @@ +# 关于 Swift +----------------- + > 1.0 > 翻译:[numbbbbb](https://github.com/numbbbbb) > 校对:[yeahdongcn](https://github.com/yeahdongcn) @@ -5,10 +8,6 @@ > 2.0 > 翻译+校对:[xtymichael](https://github.com/xtymichael) - -# 关于 Swift ------------------ - Swift 是一种新的编程语言,用于编写 iOS,OS X 和 watchOS应用程序。Swift 结合了 C 和 Objective-C 的优点并且不受 C 兼容性的限制。Swift 采用安全的编程模式并添加了很多新特性,这将使编程更简单,更灵活,也更有趣。Swift 是基于成熟而且倍受喜爱的 Cocoa 和 Cocoa Touch 框架,它的降临将重新定义软件开发。 Swift 的开发从很久之前就开始了。为了给 Swift 打好基础,苹果公司改进了编译器,调试器和框架结构。我们使用自动引用计数(Automatic Reference Counting, ARC)来简化内存管理。我们在 Foundation 和 Cocoa 的基础上构建框架栈使其完全现代化和标准化。 diff --git a/source/chapter1/02_a_swift_tour.md b/source/chapter1/02_a_swift_tour.md index f4f7f643..3fcc5d15 100755 --- a/source/chapter1/02_a_swift_tour.md +++ b/source/chapter1/02_a_swift_tour.md @@ -1,3 +1,7 @@ +# Swift 初见 + +--- + > 1.0 > 翻译:[numbbbbb](https://github.com/numbbbbb) > 校对:[shinyzhu](https://github.com/shinyzhu), [stanzhai](https://github.com/stanzhai) @@ -5,10 +9,6 @@ > 2.0 > 翻译+校对:[xtymichael](https://github.com/xtymichael) -# Swift 初见 - ---- - 本页内容包括: - [简单值(Simple Values)](#simple_values) diff --git a/source/chapter1/03_revision_history.md b/source/chapter1/03_revision_history.md index b4d57afd..d6bdfea0 100644 --- a/source/chapter1/03_revision_history.md +++ b/source/chapter1/03_revision_history.md @@ -1,10 +1,10 @@ -> 翻译:[成都老码团队翻译组-Arya](http://weibo.com/littlekok/) -> 校对:[成都老码团队翻译组-Oberyn](http://weibo.com/u/5241713117) - # Swift 版本历史记录 --- +> 翻译:[成都老码团队翻译组-Arya](http://weibo.com/littlekok/) +> 校对:[成都老码团队翻译组-Oberyn](http://weibo.com/u/5241713117) + 本页内容包括: - [XCode6.4 Beta Swift语法文档更新](#xcode6_4_Beta) diff --git a/source/chapter2/01_The_Basics.md b/source/chapter2/01_The_Basics.md index 4138b68c..5b458c8b 100755 --- a/source/chapter2/01_The_Basics.md +++ b/source/chapter2/01_The_Basics.md @@ -1,3 +1,6 @@ +# 基础部分 +----------------- + > 1.0 > 翻译:[numbbbbb](https://github.com/numbbbbb), [lyuka](https://github.com/lyuka), [JaySurplus](https://github.com/JaySurplus) > 校对:[lslxdx](https://github.com/lslxdx) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[xtymichael](https://github.com/xtymichael) -# 基础部分 ------------------ - 本页包含内容: - [常量和变量](#constants_and_variables) diff --git a/source/chapter2/02_Basic_Operators.md b/source/chapter2/02_Basic_Operators.md index 89beb3c1..28874ae3 100755 --- a/source/chapter2/02_Basic_Operators.md +++ b/source/chapter2/02_Basic_Operators.md @@ -1,3 +1,6 @@ +# 基本运算符 +----------------- + > 1.0 > 翻译:[XieLingWang](https://github.com/xielingwang) > 校对:[EvilCome](https://github.com/Evilcome) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[JackAlan](https://github.com/AlanMelody) -# 基本运算符 ------------------ - 本页包含内容: - [术语](#terminology) diff --git a/source/chapter2/03_Strings_and_Characters.md b/source/chapter2/03_Strings_and_Characters.md index 0ec0ee94..0084d44a 100755 --- a/source/chapter2/03_Strings_and_Characters.md +++ b/source/chapter2/03_Strings_and_Characters.md @@ -1,3 +1,6 @@ +# 字符串和字符(Strings and Characters) +--- + > 1.0 > 翻译:[wh1100717](https://github.com/wh1100717) > 校对:[Hawstein](https://github.com/Hawstein) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[DianQK](https://github.com/DianQK) -# 字符串和字符(Strings and Characters) ---- - 本页包含内容: - [字符串字面量](#string_literals) diff --git a/source/chapter2/04_Collection_Types.md b/source/chapter2/04_Collection_Types.md index 287a4caf..c93fa22e 100755 --- a/source/chapter2/04_Collection_Types.md +++ b/source/chapter2/04_Collection_Types.md @@ -1,3 +1,6 @@ +# 集合类型 (Collection Types) +----------------- + > 1.0 > 翻译:[zqp](https://github.com/zqp) > 校对:[shinyzhu](https://github.com/shinyzhu), [stanzhai](https://github.com/stanzhai), [feiin](https://github.com/feiin) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[JackAlan](https://github.com/AlanMelody) -# 集合类型 (Collection Types) ------------------ - 本页包含内容: - [集合的可变性(Mutability of Collections)](#mutability_of_collections) diff --git a/source/chapter2/05_Control_Flow.md b/source/chapter2/05_Control_Flow.md index 6070ef8b..d3a31cf2 100755 --- a/source/chapter2/05_Control_Flow.md +++ b/source/chapter2/05_Control_Flow.md @@ -1,3 +1,6 @@ +# 控制流 +----------------- + > 1.0 > 翻译:[vclwei](https://github.com/vclwei), [coverxit](https://github.com/coverxit), [NicePiao](https://github.com/NicePiao) > 校对:[coverxit](https://github.com/coverxit), [stanzhai](https://github.com/stanzhai) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[JackAlan](https://github.com/AlanMelody) -# 控制流 ------------------ - 本页包含内容: - [For 循环](#for_loops) diff --git a/source/chapter2/06_Functions.md b/source/chapter2/06_Functions.md index 6104efc2..a43ebab2 100755 --- a/source/chapter2/06_Functions.md +++ b/source/chapter2/06_Functions.md @@ -1,3 +1,6 @@ +# 函数(Functions) +----------------- + > 1.0 > 翻译:[honghaoz](https://github.com/honghaoz) > 校对:[LunaticM](https://github.com/LunaticM) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[dreamkidd](https://github.com/dreamkidd) -# 函数(Functions) ------------------ - 本页包含内容: - [函数定义与调用(Defining and Calling Functions)](#Defining_and_Calling_Functions) diff --git a/source/chapter2/07_Closures.md b/source/chapter2/07_Closures.md index 5f22445b..c93792e6 100755 --- a/source/chapter2/07_Closures.md +++ b/source/chapter2/07_Closures.md @@ -1,3 +1,6 @@ +# 闭包(Closures) +----------------- + > 1.0 > 翻译:[wh1100717](https://github.com/wh1100717) > 校对:[lyuka](https://github.com/lyuka) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[100mango](https://github.com/100mango) -# 闭包(Closures) ------------------ - 本页包含内容: - [闭包表达式(Closure Expressions)](#closure_expressions) diff --git a/source/chapter2/08_Enumerations.md b/source/chapter2/08_Enumerations.md index 2fce4114..89160fc9 100755 --- a/source/chapter2/08_Enumerations.md +++ b/source/chapter2/08_Enumerations.md @@ -1,3 +1,6 @@ +# 枚举(Enumerations) +--- + > 1.0 > 翻译:[yankuangshi](https://github.com/yankuangshi) > 校对:[shinyzhu](https://github.com/shinyzhu) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[futantan](https://github.com/futantan) -# 枚举(Enumerations) ---- - 本页内容包含: - [枚举语法(Enumeration Syntax)](#enumeration_syntax) diff --git a/source/chapter2/09_Classes_and_Structures.md b/source/chapter2/09_Classes_and_Structures.md index df922f29..e330c7c9 100755 --- a/source/chapter2/09_Classes_and_Structures.md +++ b/source/chapter2/09_Classes_and_Structures.md @@ -1,3 +1,5 @@ +# 类和结构体 + > 1.0 > 翻译:[JaySurplus](https://github.com/JaySurplus) > 校对:[sg552](https://github.com/sg552) @@ -5,8 +7,6 @@ > 2.0 > 翻译+校对:[SkyJean](https://github.com/SkyJean) -# 类和结构体 - 本页包含内容: - [类和结构体对比](#comparing_classes_and_structures) diff --git a/source/chapter2/10_Properties.md b/source/chapter2/10_Properties.md index 89c9c196..1a341cc0 100755 --- a/source/chapter2/10_Properties.md +++ b/source/chapter2/10_Properties.md @@ -1,3 +1,6 @@ +# 属性 (Properties) +--- + > 1.0 > 翻译:[shinyzhu](https://github.com/shinyzhu) > 校对:[pp-prog](https://github.com/pp-prog) [yangsiy](https://github.com/yangsiy) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[yangsiy](https://github.com/yangsiy) -# 属性 (Properties) ---- - 本页包含内容: - [存储属性(Stored Properties)](#stored_properties) diff --git a/source/chapter2/11_Methods.md b/source/chapter2/11_Methods.md index 1366f6e3..1c310af7 100755 --- a/source/chapter2/11_Methods.md +++ b/source/chapter2/11_Methods.md @@ -1,3 +1,6 @@ +# 方法(Methods) +----------------- + > 1.0 > 翻译:[pp-prog](https://github.com/pp-prog) > 校对:[zqp](https://github.com/zqp) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[DianQK](https://github.com/DianQK) -# 方法(Methods) ------------------ - 本页包含内容: - [实例方法(Instance Methods)](#instance_methods) diff --git a/source/chapter2/12_Subscripts.md b/source/chapter2/12_Subscripts.md index f1d2b5bd..8b33727f 100755 --- a/source/chapter2/12_Subscripts.md +++ b/source/chapter2/12_Subscripts.md @@ -1,3 +1,6 @@ +# 下标脚本(Subscripts) +----------------- + > 1.0 > 翻译:[siemenliu](https://github.com/siemenliu) > 校对:[zq54zquan](https://github.com/zq54zquan) @@ -5,10 +8,6 @@ > 2.0 > 翻译+校对:[shanksyang](https://github.com/shanksyang) - -# 下标脚本(Subscripts) ------------------ - 本页包含内容: - [下标脚本语法](#subscript_syntax) diff --git a/source/chapter2/13_Inheritance.md b/source/chapter2/13_Inheritance.md index 8ed3e432..b4d94657 100755 --- a/source/chapter2/13_Inheritance.md +++ b/source/chapter2/13_Inheritance.md @@ -1,3 +1,6 @@ +# 继承(Inheritance) +------------------- + > 1.0 > 翻译:[Hawstein](https://github.com/Hawstein) > 校对:[menlongsheng](https://github.com/menlongsheng) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[shanksyang](https://github.com/shanksyang) -# 继承(Inheritance) -------------------- - 本页包含内容: - [定义一个基类(Base class)](#defining_a_base_class) diff --git a/source/chapter2/14_Initialization.md b/source/chapter2/14_Initialization.md index 9815c427..0d99214f 100755 --- a/source/chapter2/14_Initialization.md +++ b/source/chapter2/14_Initialization.md @@ -1,3 +1,6 @@ +# 构造过程(Initialization) +----------------- + > 1.0 > 翻译:[lifedim](https://github.com/lifedim) > 校对:[lifedim](https://github.com/lifedim) @@ -5,10 +8,6 @@ > 2.0 > 翻译+校对:[chenmingbiao](https://github.com/chenmingbiao) -# 构造过程(Initialization) - ------------------ - 本页包含内容: - [存储型属性的初始赋值](#setting_initial_values_for_stored_properties) diff --git a/source/chapter2/15_Deinitialization.md b/source/chapter2/15_Deinitialization.md index 6fd6cead..d93844be 100755 --- a/source/chapter2/15_Deinitialization.md +++ b/source/chapter2/15_Deinitialization.md @@ -1,3 +1,6 @@ +# 析构过程(Deinitialization) +--------------------------- + > 1.0 > 翻译:[bruce0505](https://github.com/bruce0505) > 校对:[fd5788](https://github.com/fd5788) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[chenmingbiao](https://github.com/chenmingbiao) -# 析构过程(Deinitialization) ---------------------------- - 本页包含内容: - [析构过程原理](#how_deinitialization_works) diff --git a/source/chapter2/16_Automatic_Reference_Counting.md b/source/chapter2/16_Automatic_Reference_Counting.md index ad672397..8af3ee7e 100755 --- a/source/chapter2/16_Automatic_Reference_Counting.md +++ b/source/chapter2/16_Automatic_Reference_Counting.md @@ -1,3 +1,6 @@ +# 自动引用计数 +----------------- + > 1.0 > 翻译:[TimothyYe](https://github.com/TimothyYe) > 校对:[Hawstein](https://github.com/Hawstein) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[Channe](https://github.com/Channe) -# 自动引用计数 ------------------ - 本页包含内容: - [自动引用计数的工作机制](#how_arc_works) diff --git a/source/chapter2/17_Optional_Chaining.md b/source/chapter2/17_Optional_Chaining.md index aa032d1b..2fb32213 100755 --- a/source/chapter2/17_Optional_Chaining.md +++ b/source/chapter2/17_Optional_Chaining.md @@ -1,4 +1,6 @@ # 可空链式调用 + +----------------- > 1.0 > 翻译:[Jasonbroker](https://github.com/Jasonbroker) @@ -7,7 +9,7 @@ > 2.0 > 翻译+校对:[lyojo](https://github.com/lyojo) ------------------ + 可空链式调用(Optional Chaining)是一种可以请求和调用属性、方法及下标的过程,它的可空性体现于请求或调用的目标当前可能为空(nil)。如果可空的目标有值,那么调用就会成功;如果选择的目标为空(nil),那么这种调用将返回空(nil)。多个连续的调用可以被链接在一起形成一个调用链,如果其中任何一个节点为空(nil)将导致整个链调用失败。 > diff --git a/source/chapter2/18_Error_Handling.md b/source/chapter2/18_Error_Handling.md index 6fc497f3..02c61bde 100644 --- a/source/chapter2/18_Error_Handling.md +++ b/source/chapter2/18_Error_Handling.md @@ -1,8 +1,10 @@ -> 2.0 -> 翻译+校对:[lyojo](https://github.com/lyojo) # 错误处理 ----------------- + +> 2.0 +> 翻译+校对:[lyojo](https://github.com/lyojo) + 错误处理是响应错误以及从错误中返回的过程。swift提供第一类错误支持,包括在运行时抛出,捕获,传送和控制可回收错误。 一些函数和方法不能总保证能够执行所有代码或产生有用的输出。可空类型用来表示值可能为空,但是当函数执行失败的事后,可空通常可以用来确定执行失败的原因,因此代码可以正确地响应失败。在Swift中,这叫做抛出函数或者抛出方法。 diff --git a/source/chapter2/19_Type_Casting.md b/source/chapter2/19_Type_Casting.md index 8ecbbfb7..969aac86 100644 --- a/source/chapter2/19_Type_Casting.md +++ b/source/chapter2/19_Type_Casting.md @@ -1,3 +1,6 @@ +# 类型转换(Type Casting) +----------------- + > 1.0 > 翻译:[xiehurricane](https://github.com/xiehurricane) > 校对:[happyming](https://github.com/happyming) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[yangsiy](https://github.com/yangsiy) -# 类型转换(Type Casting) ------------------ - 本页包含内容: - [定义一个类层次作为例子](#defining_a_class_hierarchy_for_type_casting) diff --git a/source/chapter2/20_Nested_Types.md b/source/chapter2/20_Nested_Types.md index ea3f8bb8..33f72c5d 100755 --- a/source/chapter2/20_Nested_Types.md +++ b/source/chapter2/20_Nested_Types.md @@ -1,3 +1,6 @@ +# 嵌套类型 +----------------- + > 1.0 > 翻译:[Lin-H](https://github.com/Lin-H) > 校对:[shinyzhu](https://github.com/shinyzhu) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[SergioChan](https://github.com/SergioChan) -# 嵌套类型 ------------------ - 本页包含内容: - [嵌套类型实例](#nested_types_in_action) diff --git a/source/chapter2/21_Extensions.md b/source/chapter2/21_Extensions.md index ed9aa047..837b46ae 100644 --- a/source/chapter2/21_Extensions.md +++ b/source/chapter2/21_Extensions.md @@ -1,3 +1,6 @@ +# 扩展(Extensions) +---- + > 1.0 > 翻译:[lyuka](https://github.com/lyuka) > 校对:[Hawstein](https://github.com/Hawstein) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[shanksyang](https://github.com/shanksyang) -#扩展(Extensions) ----- - 本页包含内容: - [扩展语法](#extension_syntax) diff --git a/source/chapter2/22_Protocols.md b/source/chapter2/22_Protocols.md index f4c54666..7ead37b1 100644 --- a/source/chapter2/22_Protocols.md +++ b/source/chapter2/22_Protocols.md @@ -1,3 +1,6 @@ +# 协议 +----------------- + > 1.0 > 翻译:[geek5nan](https://github.com/geek5nan) > 校对:[dabing1022](https://github.com/dabing1022) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[futantan](https://github.com/futantan) -# 协议 ------------------ - 本页包含内容: - [协议的语法(Protocol Syntax)](#protocol_syntax) diff --git a/source/chapter2/23_Generics.md b/source/chapter2/23_Generics.md index 5efaf96a..c462abc5 100644 --- a/source/chapter2/23_Generics.md +++ b/source/chapter2/23_Generics.md @@ -1,3 +1,7 @@ +# 泛型 + +------ + > 1.0 > 翻译:[takalard](https://github.com/takalard) > 校对:[lifedim](https://github.com/lifedim) @@ -5,10 +9,6 @@ > 2.0 > 翻译+校对: [SergioChan](https://github.com/SergioChan) -# 泛型 - ------- - 本页包含内容: - [泛型所解决的问题](#the_problem_that_generics_solve) diff --git a/source/chapter2/24_Access_Control.md b/source/chapter2/24_Access_Control.md index ee77c9c8..98a3d12e 100644 --- a/source/chapter2/24_Access_Control.md +++ b/source/chapter2/24_Access_Control.md @@ -1,3 +1,6 @@ +# 访问控制 +------------------ + > 1.0 > 翻译:[JaceFu](http://www.devtalking.com/) > 校对:[ChildhoodAndy](http://childhood.logdown.com) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[mmoaay](https://github.com/mmoaay) -# 访问控制 ------------------- - 本页内容包括: - [模块和源文件](#modules_and_source_files) diff --git a/source/chapter2/25_Advanced_Operators.md b/source/chapter2/25_Advanced_Operators.md index 76b47c0b..798e32a3 100644 --- a/source/chapter2/25_Advanced_Operators.md +++ b/source/chapter2/25_Advanced_Operators.md @@ -1,3 +1,6 @@ +# 高级运算符 +----------------- + > 1.0 > 翻译:[xielingwang](https://github.com/xielingwang) > 校对:[numbbbbb](https://github.com/numbbbbb) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[buginux](https://github.com/buginux) -# 高级运算符 ------------------ - 本页内容包括: - [位运算符](#bitwise_operators) diff --git a/source/chapter3/01_About_the_Language_Reference.md b/source/chapter3/01_About_the_Language_Reference.md index 802e571d..2cab43d6 100755 --- a/source/chapter3/01_About_the_Language_Reference.md +++ b/source/chapter3/01_About_the_Language_Reference.md @@ -1,3 +1,6 @@ +# 关于语言附注 +----------------- + > 1.0 > 翻译:[dabing1022](https://github.com/dabing1022) > 校对:[numbbbbb](https://github.com/numbbbbb) @@ -5,10 +8,6 @@ > 2.0 > 翻译+校对:[KYawn](https://github.com/KYawn) - -# 关于语言附注 ------------------ - 本页内容包括: - [如何阅读语法](#how_to_read_the_grammar) diff --git a/source/chapter3/02_Lexical_Structure.md b/source/chapter3/02_Lexical_Structure.md index 5bd5feb9..178a17fa 100755 --- a/source/chapter3/02_Lexical_Structure.md +++ b/source/chapter3/02_Lexical_Structure.md @@ -1,3 +1,6 @@ +# 词法结构 +----------------- + > 1.0 > 翻译:[superkam](https://github.com/superkam) > 校对:[numbbbbb](https://github.com/numbbbbb) @@ -5,8 +8,6 @@ > 2.0 > 翻译+校对:[buginux]([KYawn](https://github.com/buginux) -# 词法结构 ------------------ 本页包含内容: diff --git a/source/chapter3/03_Types.md b/source/chapter3/03_Types.md index 80a42571..2ba926c2 100644 --- a/source/chapter3/03_Types.md +++ b/source/chapter3/03_Types.md @@ -1,3 +1,6 @@ +# 类型(Types) +----------------- + > 1.0 > 翻译:[lyuka](https://github.com/lyuka) > 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[EudeMorgen](https://github.com/EudeMorgen) -# 类型(Types) ------------------ - 本页包含内容: - [类型注解(Type Annotation)](#type_annotation) diff --git a/source/chapter3/04_Expressions.md b/source/chapter3/04_Expressions.md index 762c0f77..27b0b8fa 100644 --- a/source/chapter3/04_Expressions.md +++ b/source/chapter3/04_Expressions.md @@ -1,3 +1,6 @@ +# 表达式(Expressions) +----------------- + > 1.0 > 翻译:[sg552](https://github.com/sg552) > 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[EudeMorgen](https://github.com/EudeMorgen) -# 表达式(Expressions) ------------------ - 本页包含内容: - [前缀表达式(Prefix Expressions)](#prefix_expressions) diff --git a/source/chapter3/05_Declarations.md b/source/chapter3/05_Declarations.md index 39983123..a2ee9325 100755 --- a/source/chapter3/05_Declarations.md +++ b/source/chapter3/05_Declarations.md @@ -1,3 +1,7 @@ + +# 声明 +----------------- + > 1.0 > 翻译:[marsprince](https://github.com/marsprince) [Lenhoon](https://github.com/marsprince)[(微博)](http://www.weibo.com/lenhoon) > 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai) @@ -5,10 +9,6 @@ > 2.0 > 翻译+校对:[Lenhoon](https://github.com/Lenhoon) - -# 声明 ------------------ - 本页包含内容: - [顶级代码](#top-level_code) diff --git a/source/chapter3/06_Attributes.md b/source/chapter3/06_Attributes.md index ab0db9d5..48688dc4 100755 --- a/source/chapter3/06_Attributes.md +++ b/source/chapter3/06_Attributes.md @@ -1,3 +1,6 @@ +# 特性 +----------------- + > 1.0 > 翻译:[Hawstein](https://github.com/Hawstein) > 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[KYawn](https://github.com/KYawn) -# 特性 ------------------ - 本页内容包括: - [声明特性](#declaration_attributes) diff --git a/source/chapter3/07_Patterns.md b/source/chapter3/07_Patterns.md index 9985000c..056cdd22 100755 --- a/source/chapter3/07_Patterns.md +++ b/source/chapter3/07_Patterns.md @@ -1,3 +1,6 @@ +# 模式(Patterns) +----------------- + > 1.0 > 翻译:[honghaoz](https://github.com/honghaoz) > 校对:[numbbbbb](https://github.com/numbbbbb), [stanzhai](https://github.com/stanzhai) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[ray16897188](https://github.com/ray16897188) -# 模式(Patterns) ------------------ - 本页内容包括: - [通配符模式(Wildcard Pattern)](#wildcard_pattern) diff --git a/source/chapter3/08_Generic_Parameters_and_Arguments.md b/source/chapter3/08_Generic_Parameters_and_Arguments.md index 4d55719a..3cb794df 100755 --- a/source/chapter3/08_Generic_Parameters_and_Arguments.md +++ b/source/chapter3/08_Generic_Parameters_and_Arguments.md @@ -1,3 +1,6 @@ +# 泛型参数 +--------- + > 1.0 > 翻译:[fd5788](https://github.com/fd5788) > 校对:[yankuangshi](https://github.com/yankuangshi), [stanzhai](https://github.com/stanzhai) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[wardenNScaiyi](https:github.com/wardenNScaiyi) -# 泛型参数 ---------- - 本页包含内容: - [泛型形参子句](#generic_parameter) diff --git a/source/chapter3/09_Summary_of_the_Grammar.md b/source/chapter3/09_Summary_of_the_Grammar.md index c6d16483..5af7d45d 100755 --- a/source/chapter3/09_Summary_of_the_Grammar.md +++ b/source/chapter3/09_Summary_of_the_Grammar.md @@ -1,3 +1,6 @@ +# 语法总结 +----- + > 1.0 > 翻译:[stanzhai](https://github.com/stanzhai) > 校对:[xielingwang](https://github.com/xielingwang) @@ -5,9 +8,6 @@ > 2.0 > 翻译+校对:[miaosiqi](https://github.com/miaosiqi) -# 语法总结 -_________________ - 本页包含内容: * [语句(Statements)](#statements) diff --git a/source/chapter3/10_Statements.md b/source/chapter3/10_Statements.md index 6fd60db7..c2f1e00f 100755 --- a/source/chapter3/10_Statements.md +++ b/source/chapter3/10_Statements.md @@ -1,3 +1,7 @@ + +# 语句 +----------------- + > 1.0 > 翻译:[coverxit](https://github.com/coverxit) > 校对:[numbbbbb](https://github.com/numbbbbb), [coverxit](https://github.com/coverxit), [stanzhai](https://github.com/stanzhai), @@ -5,10 +9,6 @@ > 2.0 > 翻译+校对:[littledogboy](https://github.com/littledogboy) - -# 语句 ------------------ - 本页包含内容: - [循环语句](#loop_statements) diff --git a/source/chapter4/01_Access_Control.md b/source/chapter4/01_Access_Control.md index 9d058b52..60893521 100644 --- a/source/chapter4/01_Access_Control.md +++ b/source/chapter4/01_Access_Control.md @@ -1,8 +1,8 @@ +# Access Control 权限控制的黑与白 + > 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/) > 校对:[老码团队翻译组-Oberyn](http://weibo.com/u/5241713117) -# Access Control 权限控制的黑与白 - 如果您之前没有接触过权限控制,先来听一个小故事: > 小明是五道口工业学院的一个大一新生,最近他有点烦恼,因为同屋经常用他的热水壶,好像那是自己家的一样,可是碍于同学情面,又不好意思说。直到有一天,他和学姐小K吐槽。 diff --git a/source/chapter4/02_Type_Custom.md b/source/chapter4/02_Type_Custom.md index 20ab4542..56ab7f12 100644 --- a/source/chapter4/02_Type_Custom.md +++ b/source/chapter4/02_Type_Custom.md @@ -1,9 +1,9 @@ -> 翻译:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117) -> 校对:[老码团队翻译组-Oberyn](http://weibo.com/u/5241713117) - # 造个类型不是梦-白话Swift类型创建 ----------------- +> 翻译:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117) +> 校对:[老码团队翻译组-Oberyn](http://weibo.com/u/5241713117) + 本页包含内容: - [自定义原型](#prototype) diff --git a/source/chapter4/03_Ballons.md b/source/chapter4/03_Ballons.md index 999bf0fc..1c749ebe 100644 --- a/source/chapter4/03_Ballons.md +++ b/source/chapter4/03_Ballons.md @@ -1,8 +1,8 @@ +# WWDC里面的那个“大炮打气球” + > 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/) > 校对:[老码团队翻译组-](Jame) -# WWDC里面的那个“大炮打气球” - ![Ballon playground](https://devimages.apple.com.edgekey.net/swift/images/swift-screenshot.jpg) diff --git a/source/chapter4/04_Interacting_with_C_Pointers.md b/source/chapter4/04_Interacting_with_C_Pointers.md index ac41306b..79a09b2e 100644 --- a/source/chapter4/04_Interacting_with_C_Pointers.md +++ b/source/chapter4/04_Interacting_with_C_Pointers.md @@ -1,9 +1,9 @@ -> 翻译:[老码团队翻译组-Relly](http://weibo.com/penguinliong/) -> 校对:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117) - # Swift与C语言指针友好合作 ----------------- +> 翻译:[老码团队翻译组-Relly](http://weibo.com/penguinliong/) +> 校对:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117) + 本页包含内容: - [用以输入/输出的参数指针](#inout-para-pointer) diff --git a/source/chapter4/05_Value_and_Reference_Types.md b/source/chapter4/05_Value_and_Reference_Types.md index 3a387d7f..f8b3ef96 100644 --- a/source/chapter4/05_Value_and_Reference_Types.md +++ b/source/chapter4/05_Value_and_Reference_Types.md @@ -1,9 +1,9 @@ -> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/) -> 校对:[老码团队翻译组-Jame](http://weibo.com/u/5241713117) - # Swift里的值类型与引用类型 ----------------- +> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/) +> 校对:[老码团队翻译组-Jame](http://weibo.com/u/5241713117) + 本页包含内容: - [值类型与引用类型的区别](#difference-two) diff --git a/source/chapter4/06_Access_Control_and_Protected.md b/source/chapter4/06_Access_Control_and_Protected.md index 55f3d19b..8bbcf292 100644 --- a/source/chapter4/06_Access_Control_and_Protected.md +++ b/source/chapter4/06_Access_Control_and_Protected.md @@ -1,9 +1,8 @@ -> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/) -> 校对:[老码团队翻译组-Jame](http://weibo.com/u/5241713117) - # 访问控制和protected ----------------- +> 翻译:[老码团队翻译组-Arya](http://weibo.com/littlekok/) +> 校对:[老码团队翻译组-Jame](http://weibo.com/u/5241713117) 原文再续,书折第一回。 diff --git a/source/chapter4/07_Optional_Case_Study.md b/source/chapter4/07_Optional_Case_Study.md index 486f409a..40c78cff 100644 --- a/source/chapter4/07_Optional_Case_Study.md +++ b/source/chapter4/07_Optional_Case_Study.md @@ -1,9 +1,9 @@ -> 翻译:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117) -> 校对:[老码团队翻译组-Ayra](http://weibo.com/littlekok/) - # 可选类型完美解决占位问题 ----------------- +> 翻译:[老码团队翻译组-Tyrion](http://weibo.com/u/5241713117) +> 校对:[老码团队翻译组-Ayra](http://weibo.com/littlekok/) + 本页包含内容: - [为Dictionary增加objectsForKeys函数](#add-function) From 397fcc065ed7db879497ebfd2f1eda807c3dfb6e Mon Sep 17 00:00:00 2001 From: Vincent 4J Date: Tue, 11 Aug 2015 17:02:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BB=8E=E7=9B=AE=E5=BD=95=E4=B8=AD?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E7=A9=BA=E7=99=BD=E9=A1=B5=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/SUMMARY.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/SUMMARY.md b/source/SUMMARY.md index 10e9dc32..36344074 100755 --- a/source/SUMMARY.md +++ b/source/SUMMARY.md @@ -31,7 +31,7 @@ * [泛型](chapter2/23_Generics.md) * [权限控制](chapter2/24_Access_Control.md) * [高级操作符](chapter2/25_Advanced_Operators.md) -* [语言参考](chapter3/chapter3.md) +* 语言参考 * [关于语言参考](chapter3/01_About_the_Language_Reference.md) * [词法结构](chapter3/02_Lexical_Structure.md) * [类型](chapter3/03_Types.md) @@ -42,7 +42,7 @@ * [模式](chapter3/07_Patterns.md) * [泛型参数](chapter3/08_Generic_Parameters_and_Arguments.md) * [语法总结](chapter3/09_Summary_of_the_Grammar.md) -* [苹果官方Blog官方翻译](chapter4/chapter4.md) +* 苹果官方Blog官方翻译 * [Access Control 权限控制的黑与白](chapter4/01_Access_Control.md) * [造个类型不是梦-白话Swift类型创建](chapter4/02_Type_Custom.md) * [WWDC里面的那个“大炮打气球”](chapter4/03_Ballons.md)