Here's one i came across tonight. I've been having difficulty swapping images, and notably ... even when the correct image = imagename, i still get the default unchanged NIB's UIImageView image.
QUESTION: Does XCode cache stuff it doesn't clear? Tonight i did the following in my quest to understand why things happen.
1) took IMAGES folder and deleted references from Project
2) from Finder: removed Images folder from Projects folder
3) Reset Simulator and Cleared all Caches of Xcode.
4) Restarted Mac
5) Launched Xcode, one more clear cache for good luck ;-)
6) Check NIBs, yup all images are missing!
7) MOVE Project folder to another folder
8) VERYIFY all Builds in Build folder are erased!
9) Xcode Build & Go
Now... can someone please explain how/why the Simulator is still displaying the images i had in my NIB's default state ... when they should all be missing? This seems totally illogical to me.
Here's one i came across tonight. I've been having difficulty swapping images, and notably ... even when the correct image = imagename, i still get the default unchanged NIB's UIImageView image.
QUESTION: Does XCode cache stuff it doesn't clear? Tonight i did the following in my quest to understand why things happen.
1) took IMAGES folder and deleted references from Project
2) from Finder: removed Images folder from Projects folder
3) Reset Simulator and Cleared all Caches of Xcode.
4) Restarted Mac
5) Launched Xcode, one more clear cache for good luck ;-)
6) Check NIBs, yup all images are missing!
7) MOVE Project folder to another folder
8) VERYIFY all Builds in Build folder are erased!
9) Xcode Build & Go
Now... can someone please explain how/why the Simulator is still displaying the images i had in my NIB's default state ... when they should all be missing? This seems totally illogical to me.
I find that performing "Clean all targets" from the xCode menu gets rid of most caching problems like these.
well, cleaning the targets clearly helps cache issues =) ... but not developer issues like mine, based largely on ignorance ... for some darn reason when i transition between VCs the target's pre-show-view routines run and log their values, but the UIImage in the target doesn't update.
Then i click a button which basically uses same code:
varUIImage.image = newImage;
Try deleting the app from the simulator (either by reseting the simulator or by click and hold - it all starts to wiggle - click X - it's gone) do a clean all (in xCode) and then build and see what happenes...
I've noticed this - not everything get's deleted if you do not delete the app itself before build - seen it on the phone but especially on the simulator...
The cache issue is long gone, but for some reason the problem i describe persists. My coming view controller says its updating my UIImageView but its not. Would you by chance be aware of circumstances which might cause
setImageView.image = image;
The cache issue is long gone, but for some reason the problem i describe persists. My coming view controller says its updating my UIImageView but its not. Would you by chance be aware of circumstances which might cause
setImageView.image = image;
... to not work?
No idea?
Your "image" is not an UIImage or something?
Have you checked and made sure your image is not undefined or otherwise failing in some way?
The files resources (images, htmls etc) are in 2 places, in the resources folder (in your application folder) and the filesystem folder (the last path), other places (cache memory) depend from your code. send me your code and i will review it.
best regards
Fredy A
freddy(at)pixel.pe
Quote:
Originally Posted by russk
Have tried all the above...
But I'm still seeing a deleted image flash on for a second before the correct splash screen image appears on top of it.
Where/how is it possibly getting this image?!?
Testing a simple splash screen shouldn't require this much voodoo.