I have a property that I do not always need, therefore I don't want to instantiate it on view did load or an init method (I think). I figure I could take a lazy instantiation approach and do initialization in the getter for the property...
-(PropertyType *)myProperty {
if (!_myProperty)
self.myProperty = [[PropertyType alloc] init];
return _myProperty;
}
I just have a feeling that this is a bit hacky. But it may not be. Any ideas??
-Thanks!