Created
September 25, 2013 11:28
-
-
Save steve0hh/6698336 to your computer and use it in GitHub Desktop.
Constants in a Objective-C project
Reference : http://stackoverflow.com/questions/538996/constants-in-objective-c
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
#import <Foundation/Foundation.h> | |
@interface Constants : NSObject | |
FOUNDATION_EXPORT NSString *const MyFirstConstant; | |
FOUNDATION_EXPORT NSString *const MySecondConstant; | |
@end |
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
#import "Constants.h" | |
@implementation Constants | |
NSString *const MyFirstConstant = @"MyFirstConstant"; | |
NSString *const MySecondConstant = @"MySecondConstant"; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment