【编码风格】禅与 Objective-C 编程艺术 (Zen and the Art of the Objective-C Craftsmanship 中文翻译)
本文来自:https://github.com/oa414/objc-zen-book-cn#%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86 错误处理当方法返回一个错误参数的引用的时候,检查返回值,而不是错误的变量。推荐: NSError *error = nil; if (![self trySomethingWithError:&err
转载
2015-07-20 19:21:31 ·
790 阅读 ·
0 评论