Skip to content

Instantly share code, notes, and snippets.

@Qiki
Last active June 15, 2016 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Qiki/a9339809eca8dcdd1333013c1bc2a7d7 to your computer and use it in GitHub Desktop.
Save Qiki/a9339809eca8dcdd1333013c1bc2a7d7 to your computer and use it in GitHub Desktop.
Reasoning behind this particular convention is that the pointer belongs to the instance and not the class. If you were to declare multiple variables on a single line, you'd expect each variable to have its own pointer like so:
NSArray *array1, *array2, *array3;
So we need to declare like this NSArray *array1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment