This is the properties declaration:
@property (atomic, weak) zooView* zooView;
This is my custom implementation:
__weak zooView* _zooView;
-(zooView*) getZooView
{
return _zooView;
}
-(void) setZooView:(btBasePinView*)inZooView
{
_zooView = inZooView;
}
I am accessing this property on another thread, on the same class:
[self.zooView imgLoadComplete:self.fullImg];
From some reason, when I access self.zooView I am returned with a nil object.
If I remove the custom setter \ getter, everything works fine.
What might be the reason?
Thanks
The getter for zooView should be -zooView not -getZooView.
To have an instance variable instead of a global, just synthesize it.
This will define an ivar _zooView with your specified getter/setter.