Skip to content

Instantly share code, notes, and snippets.

@arkilis
Created Dec 31, 2020
Embed
What would you like to do?
@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