Skip to content

Instantly share code, notes, and snippets.

@rob-murray
Last active December 12, 2015 01:28
Show Gist options
  • Save rob-murray/4691225 to your computer and use it in GitHub Desktop.
Save rob-murray/4691225 to your computer and use it in GitHub Desktop.
An example of Objective C Class constant
// 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