Last active
May 23, 2016 12:43
-
-
Save zhenyi2697/2cd910dd2a45bf7f8c4c6088c4c81846 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* 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