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 Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-29-2010, 10:48 AM   #1 (permalink)
Registered Member
 
swestland's Avatar
 
Join Date: Apr 2010
Location: Leeds UK
Posts: 30
swestland is on a distinguished road
Default problem changing images in resources

I have some images in the Resources for my project, e.g. image1.png

At some point I decided I would rather use a better image so I made another image called image1.png and tried to copy it into resources hoping it would overwrite what was there. The SDK wouldn't let me.

So I deleted the images in the resources and then copied the new images in there. Imagine my surprise when I clicked build and run and the old images appear. How can this be? Has anyone else had this problem?

How should I be replacing images?
Steve
swestland is offline   Reply With Quote
Old 04-29-2010, 01:42 PM   #2 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,070
scotopia is on a distinguished road
Default

Whenever you overwrite assets like this you should do a "clean all targets" from the top menu. If for some reason that fails just delete the build folder and try it again.
scotopia is offline   Reply With Quote
Old 05-05-2010, 12:14 PM   #3 (permalink)
Registered Member
 
swestland's Avatar
 
Join Date: Apr 2010
Location: Leeds UK
Posts: 30
swestland is on a distinguished road
Default

clean all targets - yes, this worked. Thank you!
swestland is offline   Reply With Quote
Old 05-05-2010, 12:33 PM   #4 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,070
scotopia is on a distinguished road
Default

Quote:
Originally Posted by swestland View Post
clean all targets - yes, this worked. Thank you!
No problem
scotopia is offline   Reply With Quote
Old 05-05-2010, 12:34 PM   #5 (permalink)
Registered Member
 
mobileben's Avatar
 
Join Date: Jul 2009
Location: Zgrunturos
Posts: 161
mobileben is on a distinguished road
Default

To change resources, you really want to change where it is on the hard drive. You can find this out by right clicking and selecting Get Info. It will tell you where it is.

The "tricky" part is this. Whether or not you have to "Clean" is dependent upon the date of the file and when you did your last build. So, say you changed your art yesterday and set it aside. Today you made a code change and built it. Then you copied over the art file to the place on the HD where resources is pointing to. When you rebuild it, it will not rebundle it in. So of course Clean because a good safety net.
__________________
Have a Poketastic time with QuitIt!
Arcade Basketball at it's best! Hoops Madness!
VS action on the iPad with Hoops Madness VS!
Sweet trailer here!
mobileben is offline   Reply With Quote
Reply

Bookmarks

Tags
images, resources

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: 334
21 members and 313 guests
Abidullah, baja_yu, cgokey, Domele, Duncan C, Fstuff, gbenna, givensur, guusleijsten, HowEver, iphonedevshani, jbro, JoeRCruso, mdpauley, n00b, newDev, seokwon lee, SLIC, stanny, Steven.C, WheyLabs
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,648
Threads: 94,113
Posts: 402,877
Top Poster: BrianSlick (7,990)
Welcome to our newest member, brandon6031
Powered by vBadvanced CMPS v3.1.0

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