In my universal app I have some images in Resources folder by the convention “image.png” “image@2x.png” etc.
When I change names of the images in the Resources folder I can see different images in the Simulator, But in real device whatever I do it keeps reading the previous image files. is there a cache mechanism or something do I need to clean or refresh about image files in Xcode3? Or I shouldn’t change image names in res folder?
This is how I read:
+(UIImage *) APP_CRYSTAL_SELECTION{
NSString *path = [[NSBundle mainBundle] pathForResource:@"cry" ofType:@"png"];
return [UIImage imageWithContentsOfResolutionIndependentFile:path];
}
Yes, caching might be at play here. To repopulate any
imageViewI always pass my imageView through a setup method –Basically I reset the view with a simple 1pixel Image, now it’s ready to be repopulated with any new image. hope this helps…