Created
August 26, 2011 20:39
-
-
Save sgoodwin/1174380 to your computer and use it in GitHub Desktop.
Lazy loading a variable.
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
- (NSMutableArray*)xArr{ | |
if(_xArr){ | |
return _xArry; | |
} | |
_xArr = [[NSMutableArray alloc] init]; | |
return _xArr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment