Reference Code Standard
Follow Google’s Objective-C Style Guide, it will first direct you to read Apple’s Coding Guidelines and then Google’s C++ Style Guide, don’t skip these as they complement the Style Guide in a great way.
Exceptions to the Standard
When sharing code with C++ that uses Google’s style, use 80 character limit per line, otherwise use 100; limiting characters per line helps with code reviews.
Implementing the Standard
Be consistent with the codebase and if source code doesn’t follow a particular style start introducing the style incrementally.
Was this page helpful?
Thanks for your feedback!