Last active
December 12, 2015 01:28
-
-
Save rob-murray/4691225 to your computer and use it in GitHub Desktop.
An example of Objective C Class constant
This file contains 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
// ExampleViewController.m | |
/* | |
* Define class constants a top of @implementation | |
*/ | |
static NSString *const kRMMyViewTitle = @"Amazing App Home"; | |
@implementation ExampleViewController | |
// ... // | |
- (void)myMethod | |
{ | |
NSLog(@"%@", kRMMyViewTitle); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment