I’m trying to override the setter setView in a UIViewController subclass, the reason being is that setView in UIViewController autoreleases the view and I want to handle the memory management myself.
I’m trying override setView with my setView below:
-(void)setView:(UIView *)view
{
if (_view != view)
{
[_view release];
_view = [view retain];
}
}
But the compiler seems to not find the _view ivar, so im curious to know what the setView setter in UIViewController looks like? Or any other ways i can handle the view property’s memory myself?
It should look roughly like this: