导航

2015年9月3日 #

How Not to Crash系列地址

摘要: http://inessential.com/hownottocrashHow Not to Crash #1: KVO and Manual BindingsHow Not to Crash #2: Mutation ExceptionsHow Not to Crash #3: NSNotific... 阅读全文

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

How Not to Crash #6: Properties and Accessors(属性,存储器方法使问题)

摘要: How Not to Crash #6: Properties and AccessorsHow Not to Crash #6: Properties and Accessors潜在的问题正确的方法solveExceptions使用实例变量的例外Auto-synthesize自动合成Use ARCDon’t do->thisdeallocUse weakunsafe_unretainedHow ... 阅读全文

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

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) 编辑