I have a UIImageView that starts off with an image (loading.png) specified in IB. When my app starts, a new image is downloaded from the internet to replace the existing one. I do the following to replace the image:
if(object.imageView.image != nil){
[object.imageView.image release];
object.imageView.image = nil;
}
object.imageView.image = [UIImage imageNamed:@"downloadedimage.png"];
Is this the right way to re-set an image? I am getting EXC_BAD_ACCESS when doing so.