Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 03-05-2009, 06:47 PM   #1 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 86
seanrice is on a distinguished road
Default Crazy Q: XCode Image Caches?

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.
seanrice is offline   Reply With Quote
Old 03-06-2009, 03:37 PM   #2 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,070
scotopia is on a distinguished road
Default

Quote:
Originally Posted by seanrice View Post
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.
scotopia is offline   Reply With Quote
Old 03-08-2009, 10:35 AM   #3 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 86
seanrice is on a distinguished road
Default

I can't wait to try that. Just wanted to say thank you before i rushed away excitedly. Thank you! =)
seanrice is offline   Reply With Quote
Old 03-08-2009, 10:39 AM   #4 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 86
seanrice is on a distinguished road
Default

I'm sure it did it's job ... ... however my issue remains self evident, but i do appreciate the lesson learned! Cool beans.
seanrice is offline   Reply With Quote
Old 03-08-2009, 05:50 PM   #5 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,070
scotopia is on a distinguished road
Default

Quote:
Originally Posted by seanrice View Post
I'm sure it did it's job ... ... however my issue remains self evident, but i do appreciate the lesson learned! Cool beans.
Lol, glad everything is okay now
scotopia is offline   Reply With Quote
Old 03-10-2009, 08:19 PM   #6 (permalink)
Registered Member
 
Join Date: Oct 2008
Location: United States
Posts: 132
Knertified is on a distinguished road
Default

I've ran into the same problem. I guess xcode isn't perfect after all

I also noticed that when debugger breakpoints are not hit, a simple clean all targets resolves the problem.. laaaame :P
Knertified is offline   Reply With Quote
Old 03-13-2009, 11:37 AM   #7 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 86
seanrice is on a distinguished road
Default

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;

... and the UIImage updates ....

My kingdom for a clue why.
seanrice is offline   Reply With Quote
Old 03-16-2009, 08:18 PM   #8 (permalink)
Registered Member
 
crabFish's Avatar
 
Join Date: Sep 2008
Posts: 347
crabFish is on a distinguished road
Default

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...

If this was your problem?
crabFish is offline   Reply With Quote
Old 03-16-2009, 08:23 PM   #9 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 86
seanrice is on a distinguished road
Default

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?
seanrice is offline   Reply With Quote
Old 03-16-2009, 08:42 PM   #10 (permalink)
Registered Member
 
crabFish's Avatar
 
Join Date: Sep 2008
Posts: 347
crabFish is on a distinguished road
Default

Quote:
Originally Posted by seanrice View Post
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?
crabFish is offline   Reply With Quote
Old 11-14-2010, 08:55 PM   #11 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 2
fredyjava is on a distinguished road
Default here would be your images

I think that you need clean the application files or images from the filesystem located at:

user/library/Application Support/ Iphone Simulator /(version)3.2/Applications/(here you can find your application to clean or erase)
fredyjava is offline   Reply With Quote
Old 01-15-2011, 10:48 PM   #12 (permalink)
Registered Member
 
Join Date: Jan 2011
Posts: 1
russk is on a distinguished road
Default

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.
russk is offline   Reply With Quote
Old 01-16-2011, 08:15 AM   #13 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 2
fredyjava is on a distinguished road
Default the images location

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 View Post
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.
fredyjava is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 379
8 members and 371 guests
apatsufas, comicool, dansparrow, husthlj, LunarMoon, mer10, Murphy, pbart
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,677
Threads: 94,127
Posts: 402,916
Top Poster: BrianSlick (7,990)
Welcome to our newest member, husthlj
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:07 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0