Skip to content

Instantly share code, notes, and snippets.

@zhenyi2697
Last active May 23, 2016 12:43
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 zhenyi2697/2cd910dd2a45bf7f8c4c6088c4c81846 to your computer and use it in GitHub Desktop.
Save zhenyi2697/2cd910dd2a45bf7f8c4c6088c4c81846 to your computer and use it in GitHub Desktop.
* If want to declare private constans, define in .m file
static NSString *const MyThingNotificationKey = @"MyThingNotificationKey";
* If want to declare public constants, declare in .h file:
extern/FOUNDATION_EXTERN NSString *const name in
and define the value in .m file:
NSString *const MyThingNotificationKey = @"MyThingNotificationKey";
* If want to declare global constants, use extern/FOUNDATION_EXTERN constants.h and .m and then, add this file into preprecessor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment