I have an application that stores images as NSData in Core Data.
I load those images on my views when needed using imageView.image = [UIImage imageWithData:<...>]. When I leave the view the memory allocated for that UIImage is not deallocated.
I am using ARC and I set my image view to nil on my viewDidUnload: method.
Is there anything else I can do about this?
Don’t expect the data to be deallocated as soon as you leave the view. This is not your responsibility even more when you’re using ARC. All those objects will probably go in some autorelease pool which will be drained when iOS decides or have a need to.