Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following are the standard set of spacing, formatting, and naming conventions we expect for Objective-C(++) code.

import vs. include

Always @import (not #import) Objective-C headers, and #include C (or C++) headers.

@class

Prefer the usage of #import over @class to ensure that proper dependencies are included in the implementation.

Class naming

  • Objective-C classes are to be named with:
    • The prefix Ti, or another project-appropriate prefix
    • Camelcase

...