摘要: //Use enum to create an enumeration. Like classes and all other named types, enumerations can have methods associated with them.// swift 中enum 变化比较大,枚... 阅读全文
posted @ 2015-03-05 11:20 狂灬的草人 阅读(165) 评论(0) 推荐(0) 编辑
摘要: // 下面是苹果给出的解释,就是在给属性设置新值的时候,可以在设置前和设置后做一些处理,这两个关键字就好像对该属性变化的监控If you don’t need to compute the property but still need to provide code that is run bef... 阅读全文
posted @ 2015-03-05 10:15 狂灬的草人 阅读(404) 评论(0) 推荐(0) 编辑