##Play with Swift 2 - 玩儿转 Swift 2
Support the newest Xcode7.3 and Swift2.2! 现已支持Swift最新版本 Xcode7.3 Swift2.2!
Welcome! This repo is based on the MOOC course <Play with Swift 2> on imooc.com, one of the toppest MOOC website in China. As the teacher of this brand new Swift course, I put all the demos' codes here for everyone to test and comment. If you find any bug, or have any suggestion, even brilliant ideas which can make this course better, please contact me:)
Personal Website: liuyubobobo.com
Email: liuyubobobo@gmail.com
Weibo: 刘宇波bobo http://weibo.com/liuyubobobo
Zhihu: 刘宇波 http://www.zhihu.com/people/liuyubobobo
大家好, 欢迎大家下载《玩儿转Swift2》课程的源代码。这些代码包含我在慕课网上的课程——《玩儿转Swift2》上的所有源码。大家可以下载、运行、测试、修改。如果你发现了任何bug,或者对课程中的任何内容有意见或建议,欢迎和我联系:)
个人网站:liuyubobobo.com
微博: 刘宇波bobo http://weibo.com/liuyubobobo
知乎: 刘宇波 http://www.zhihu.com/people/liuyubobobo
##Catalogue - 课程目录
-
Chapter One - Introduction CODE
- 1-1 Let's play with Swift 2 Course Video
- 1-2 Swift and iOS Development Course Video
- 1-3 Swift vs Objective-C Course Video
- 1-4 Preparation Course Video
- 1-5 Explore Playground Course Video
-
Chapter Two:Basic Types CODE
- 2-1 Declare Constants and Variables Course Video
- 2-2 Integer Course Video
- 2-3 Double, Float and Type Conversion Course Video
- 2-4 Boolean and
if
Statement Course Video - 2-5 Tuples Course Video
- 2-6 Variable Names, Function
print
and Comments Course Video
-
Chapter Three: Operator CODE
- 3-1 Basic Operators Course Video
- 3-2 Comparison Operator, Logic Operator and
if
-Statement again Course Video - 3-3 Ternary Condition Operator and Initialization Course Video
- 3-4 Range Operator and
for-in
Course Video
-
Chapter Four: Control Flow CODE
- 4-1 Loop -
for-in
andfor
Course Video - 4-2 Loop -
while
andrepeat
Course Video - 4-3 Conditional Statements -
if
,else
andswitch
Course Video - 4-4 Advanced
switch
Course Video - 4-5 Control Transfer Course Video
- 4-6
where
and Pattern Matching Course Video - 4-7
guard
and Code Style of Swift Course Video
- 4-1 Loop -
-
Chapter Five:String CODE
- 5-1 String Basics Course Video
- 5-2
Character
and Unicode Course Video - 5-3
String.Index
andRange
Course Video - 5-4
as
andNSString
Course Video - 5-5 Refer to the Documents Course Video
-
Chapter Six: Optional CODE
- 6-1 Why Optional [Course Video]
- 6-2 Optional Unwrapping [Course Video]
- 6-3 Optional Chaining 和 Nil-Coalesce [Course Video]
- 6-4 Optional in Practice [Course Video]
- 6-5 Implicity Unwrapped Optional [Course Video]
-
Chapter Seven: Array CODE
- 7-1 Array Initialization [Course Video]
- 7-2 Array Basics [Course Video]
- 7-3 Array Manipulation [Course Video]
- 7-4 2D-Array [Course Video]
- 7-5 NSArray [Course Video]
-
Chapter Eight: Dictionary and Set CODE
- 8-1 Dicitonary Initialization and Basics [Course Video]
- 8-2 Manipulation in Dictionary [Course Video]
- 8-3 Set Initialization and Basics [Course Video]
- 8-4 Manipulation in Set [Course Video]
- 8-5 Choose Data Structure Properly [Course Video]
- 8-6
for-in
Again and Swift Advance [Course Video]
-
Chapter Nine: Function CODE
- 9-1 Function Basics and the Style of Function Name [Course Video]
- 9-2 Return Mutiple Values with Tuple [Course Video]
- 9-3 Internal and External Parameter Names, and Naming Swift Function [Course Video]
- 9-4 Default Parameter and Variadic Parameter [Course Video]
- 9-5 Constant, Variable and inout Parameter [Course Video]
- 9-6 Using Function Types [Course Video]
- 9-7 Introduction to Function Programming [Course Video]
- 9-8 Return a Function Type and Nested Functions [Course Video]
-
Chapter Ten: Closure CODE
- 10-1 Closure Basics [Course Video]
- 10-2 Closure Syntax Simplification [Course Video]
- 10-3 Trailing Closure [Course Video]
- 10-4 Capture Value [Course Video]
- 10-5 Function and Closure are Reference Types [Course Video]
###第一季
-
第一章:玩儿转 Swift 2 源码
-
第二章:基本类型 源码
-
第三章 运算符 源码
-
第四章:逻辑控制 源码
-
第五章:字符串 源码
###第二季
-
第六章 可选型 源码
- 6-1 为什么要有可选型 [课程视频]
- 6-2 可选型的解包 [课程视频]
- 6-3 Optional Chaining 和 Nil-Coalesce [课程视频]
- 6-4 更多可选型的实际使用 [课程视频]
- 6-5 隐式可选型 [课程视频]
-
第七章 数组 源码
- 7-1 数组初始化 [课程视频]
- 7-2 数组的基本用法 [课程视频]
- 7-3 数组的更多操作 [课程视频]
- 7-4 二维数组 [课程视频]
- 7-5 NSArray [课程视频]
-
第八章 字典和集合 源码
- 8-1 字典 [课程视频]
- 8-2 字典的操作 [课程视频]
- 8-3 集合 [课程视频]
- 8-4 集合的操作 [课程视频]
- 8-5 选择合适的数据结构 [课程视频]
- 8-6 再看for-in [课程视频]
-
第九章 函数 源码
- 9-1 函数基础与函数名 [课程视频]
- 9-2 使用元组返回多个值 [课程视频]
- 9-3 内部参数名,外部参数名,和Swift的函数命名法 [课程视频]
- 9-4 默认参数值和可变参数 [课程视频]
- 9-5 常量参数、变量参数和inout参数 [课程视频]
- 9-6 使用函数类型 [课程视频]
- 9-7 函数式编程初步 [课程视频]
- 9-8 返回函数类型和函数嵌套 [课程视频]
-
第十章 闭包 源码
- 10-1 闭包的基本语法 [课程视频]
- 10-2 闭包语法的简化 [课程视频]
- 10-3 结尾闭包 [课程视频]
- 10-4 内容捕获 [课程视频]
- 10-5 闭包和函数是引用类型 [课程视频]
###第三季