摘要: 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) 编辑
摘要: 1. 新建一个view文件,如何用interface builder 将控件连接到code?2. 如何调整控件间的距离?2. 手动将button和action加入viewclass RatingControl: UIView { // MARK: Initialization required i... 阅读全文
posted @ 2015-07-01 08:33 uu2008 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 详细定义Function Parameter NamesFunction parameters have both anexternal parameter nameand alocal parameter name. An external parameter name is used to la... 阅读全文
posted @ 2015-07-01 06:50 uu2008 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 学习是个循序渐进的过程,万事开头难. Swift说起来简单易上手,但有一些知识要反复琢磨,多加练习,才会深入理解。Need to practise a lot and test what is Optiontal Type and how to use it very wellOptional 介绍... 阅读全文
posted @ 2015-06-30 06:46 uu2008 阅读(212) 评论(0) 推荐(0) 编辑
摘要: A view displays content, whereas a control is used to modify it in some way. A control (UIControl) is a subclass ofUIView. views can not have action. ... 阅读全文
posted @ 2015-06-29 22:17 uu2008 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 我的学习目标:半年内成为iOS高级工程师 从2015.6.23到2015.12月底我C语言用过4年,对OOP有粗浅的理解我的英语很熟练我的求知欲很强,xcode是我见过得最好的IDE, 体验很棒。NOTE:1. 最好的swift学习资料还是要看apple的,其次是standford univesit... 阅读全文
posted @ 2015-06-29 20:51 uu2008 阅读(192) 评论(0) 推荐(0) 编辑