摘要: command + S 快存command + Z 取消上次操作command + ] 选中代码块右移command + [选中代码块左移 阅读全文
posted @ 2015-07-02 12:34 uu2008 阅读(114) 评论(0) 推荐(0) 编辑
摘要: To make sure you don’t have any more hardcoded values in your code, create properties. This way, if you ever need to change these values, you only hav... 阅读全文
posted @ 2015-07-02 12:17 uu2008 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Swift语言本身90%通俗易懂,花半天时间就把《Learn the Essentials of Swift》在xcode上练习了一遍。写法比OC更加人性。有一些知识点不容易理解,需要反复强化练习,才会完全掌握。比如optional, unwrap, computed property, 函数的不同... 阅读全文
posted @ 2015-07-02 07:03 uu2008 阅读(271) 评论(0) 推荐(0) 编辑
摘要: coming soon... 阅读全文
posted @ 2015-07-02 07:01 uu2008 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 很简洁的用法: index < rating return true or false for (index, button) in ratingButtons.enumerate() { // If the index of a button is less than the rat... 阅读全文
posted @ 2015-07-02 06:50 uu2008 阅读(237) 评论(0) 推荐(0) 编辑