导航

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 30 下一页

2015年9月3日 #

How Not to Crash #3: NSNotification通知引起的崩溃

摘要: How Not to Crash #3: NSNotification通知引起的崩溃How Not to Crash #3: NSNotification通知引起的崩溃The One Way to Crash引起崩溃的原因The Big Rule怎么避免崩溃?Blanket Unregistering不怎么好的移除通知的方法移除指定通知的弊端移除通知的正确方法Beware Double Regis... 阅读全文

posted @ 2015-09-03 15:16 淅沥枫 阅读(372) 评论(0) 推荐(0) 编辑

How Not to Crash #2: Mutation Exceptions 可变异常(不要枚举可变的集合)

摘要: How Not to Crash #2: Mutation Exceptions 可变异常How Not to Crash #2: Mutation Exceptions 可变异常problemsoloveDisagree with meMutable collections should not be part of public API(可变集合不应该是公开API的一部分)潜在问题的代码改进后... 阅读全文

posted @ 2015-09-03 14:44 淅沥枫 阅读(221) 评论(0) 推荐(0) 编辑

2015年9月2日 #

Moving Swiftly(从OC切换到Swift)

摘要: Moving SwiftlyMoving Swiftly(从OC到swift)Swift1.0 not funTrouble1.source compatibility代码兼容性2.swift->Xcode->iOS 版本依赖Salt in the wound伤口上撒盐error reporting 错误提示错误提示改进swift2.0Think about the good times好处呢?M... 阅读全文

posted @ 2015-09-02 15:11 淅沥枫 阅读(532) 评论(0) 推荐(0) 编辑

How to Use updateConstraints(什么时候该使用updateConstraints)

摘要: How to Use updateConstraintsHow to Use updateConstraints(怎么使用updateConstraints)problemdoc saystough thingsdoc says again(wwdc2015)conclusion结论原文链接:How to Use updateConstraints(怎么使用updateConstraints)pr... 阅读全文

posted @ 2015-09-02 01:50 淅沥枫 阅读(1251) 评论(0) 推荐(0) 编辑

Don’t Put View Code Into Your View Controller别把View创建的代码放在VC中(swift)

摘要: Don’t Put View Code Into Your View Controller别把View创建的代码放在VC中Don’t Put View Code Into Your View Controller别把View创建的代码放在VC中The ViewThe View Controller原文链接代码Don’t Put View Code Into Your View Controller... 阅读全文

posted @ 2015-09-02 01:30 淅沥枫 阅读(325) 评论(0) 推荐(0) 编辑

Where-To-Put-The-Auto-Layout-Code(AutoLayout代码应该放在哪里?)

摘要: Where-To-Put-The-Auto-Layout-CodeWhere To Put The Auto Layout Code将AutoLayout的代码放在哪里?参考文档A参考文档B结论原文链接Where To Put The Auto Layout Code将AutoLayout的代码放在哪里?Auto Layout is kind of magic. Like a sorcerer y... 阅读全文

posted @ 2015-09-02 00:08 淅沥枫 阅读(213) 评论(0) 推荐(0) 编辑

2015年9月1日 #

iOS five years[转]

摘要: 原文链接:http://blog.ayaka.me/post/127980091987/5-yearsThis morning, I got apush notification from Timehopsaying that 5 years ago today, I submitted my fi... 阅读全文

posted @ 2015-09-01 23:12 淅沥枫 阅读(169) 评论(0) 推荐(0) 编辑

2015年8月31日 #

ResponderChain note

摘要: http://ww3.sinaimg.cn/large/6b288462gw1evl4h40tfxj20sg0lc77k.jpg 阅读全文

posted @ 2015-08-31 00:46 淅沥枫 阅读(129) 评论(0) 推荐(0) 编辑

2015年8月25日 #

找出空的文件夹(OS X)

摘要: 找出空的文件夹```find . -type d -empty``` 阅读全文

posted @ 2015-08-25 13:25 淅沥枫 阅读(152) 评论(0) 推荐(0) 编辑

2015年8月6日 #

[notes] some code tips

摘要: genericizing-codePrefer functionality over implementationIt’s never too late to refactorWatch out for repeated code across different typesOne protocol does not rule them allDifferentiate type constrai... 阅读全文

posted @ 2015-08-06 01:16 淅沥枫 阅读(215) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 30 下一页