Created
December 31, 2020 00:51
-
-
Save arkilis/de5aff99acdd0a227eafa757ad9d32aa to your computer and use it in GitHub Desktop.
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
@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