Skip to content

Instantly share code, notes, and snippets.

@arkilis
Created December 31, 2020 00:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save arkilis/de5aff99acdd0a227eafa757ad9d32aa to your computer and use it in GitHub Desktop.
@interface ViewController ()
@property (nonatomic) float value;
@end
@implementation ViewController
- (float)value {
if (!_value) {
_value = 0.0f;
NSLog(@"Only run at the first time access");
}
return _value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment