参考资料
最后更新于:2022-04-01 05:35:50
这里有一些和风格指南有关的苹果的文档:
- [The Objective-C Programming Language](http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjectiveC/Introduction/introObjectiveC.html)
- [Cocoa Fundamentals Guide](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaFundamentals/Introduction/Introduction.html)
- [Coding Guidelines for Cocoa](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html)
- [iOS App Programming Guide](http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/Introduction/Introduction.html)
- [Apple Objective-C conventions](https://developer.apple.com/library/ios/documentation/cocoa/conceptual/ProgrammingWithObjectiveC/Conventions/Conventions.html): 来自苹果的代码约定
其他:
- [Objcetive-Clean](http://objclean.com): an attempt to write a standard for writing Objective-C code with Xcode integration;
- [Uncrustify](http://uncrustify.sourceforge.net/): source code beautifier.
## 其他的 Objective-C 风格指南
这里有一些和风格指南有关的苹果的文档。如果有一些本书没有涉猎的地方,你或许能在这些之中找到详细说明。
来自 Apple 的:
- [The Objective-C Programming Language](http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjectiveC/Introduction/introObjectiveC.html)
- [Cocoa Fundamentals Guide](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaFundamentals/Introduction/Introduction.html)
- [Coding Guidelines for Cocoa](https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html)
- [iOS App Programming Guide](http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/Introduction/Introduction.html)
来自社区的:
- [NYTimes Objective-C Style Guide](https://github.com/NYTimes/objetive-c-style-guide)
- [Google](http://google-styleguide.googlecode.com/svn/trunk/objcguide.xml)
- [GitHub](https://github.com/github/objective-c-conventions)
- [Adium](https://trac.adium.im/wiki/CodingStyle)
- [Sam Soffes](https://gist.github.com/soffes/812796)
- [CocoaDevCentral](http://cocoadevcentral.com/articles/000082.php)
- [Luke Redpath](http://lukeredpath.co.uk/blog/my-objective-c-style-guide.html)
- [Marcus Zarra](http://www.cimgf.com/zds-code-style-guide/)
- [Ray Wenderlich](https://github.com/raywenderlich/objective-c-style-guide)