I have a UIImage property which I need to be able to change the UIImage on the fly.
Currently I do this like so...
if (activeImage != nil)
{
[activeImage release];
activeImage = nil;
}
activeImage = image;
The problem I have noticed is as soon as I call the release it shows FREEID(id) in the debugger popup where it used to show UIImage *... so I am thinking that this is not the correct way to release the old resources before filling the new ones... suggestions are appreciated!
Currently I do this like so...
if (activeImage != nil)
{
[activeImage release];
activeImage = nil;
}
activeImage = image;
The problem I have noticed is as soon as I call the release it shows FREEID(id) in the debugger popup where it used to show UIImage *... so I am thinking that this is not the correct way to release the old resources before filling the new ones... suggestions are appreciated!