Skip to content

Instantly share code, notes, and snippets.

Created Dec 31, 2020
What would you like to do?
@interface ViewController ()
@property (nonatomic) float value;
@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