新版本的变更 / Swift 2.0
The guard statement
The defer statement
Error handling with throws, try and catch
Custom errors: ErrorType, try? and try!
Protocol extensions
Availability checking with #available
repeat-while instead of do-while
The @testable import
Protocol extensions
此示例属于完整版,可在应用商店购买:
Swift Recipes
App Store
Code Recipes
App Store
已经购买?登录您的账户