ObjC/Swift Swift Cheat Sheet and Quick Reference

lgn21st · 2014年06月03日 · 最后由 allenlsy 回复于 2014年06月03日 · 7247 次阅读

有人一边看文档,顺便就把 cheat sheet 给做出来了。

http://cdn2.raywenderlich.com/wp-content/uploads/2014/06/RW-Swift-Cheatsheet-0_3.pdf

It summarizes the most important Swift syntax on one page to get you up to speed quickly, including:

  • Class Implementation
  • Methods
  • Creating/Using an Object
  • Declaring Variables
  • Control Flow
  • String Quick Examples
  • Array Quick Examples
  • Dictionary Quick Examples

继续招聘两年以上经验的 Swift 程序员。

多重继承。

可以声明变量和不变量,可变集合(默认)和不可变集合...这是要搞多范式那套吗?

....话说看了半天没找到包管理器……

// omits upper value, use ... to include 
for i in 0..3 { 
}

正好和 Ruby 反过来……语言学多了感觉有些串了……

#6 楼 @PrideChung 过了今天,就不玩了 🍺

#1 楼 @lgn21st 有一个下午的 Swift 使用经验,收吗?😄

Beta 毕竟是 beta……

We don't usually promise anything for the future, but in this case we are making an exception. Swift will have access control mechanisms.

希望访问控制最后是通过命名来实现的……

#10 楼 @Kabie 希望不要有访问控制......

Ray Wenderlich 做的 cheat sheet 通常都过短,不适用。只是名气大

需要 登录 后方可回复, 如果你还没有账号请 注册新账号