mrmuggles
mrmuggles

Reputation: 2141

Not able to see localized images in iPhone simulator

I have an existing working iPhone project inside XCode 4.2. I localized an image (which is used on a button) and I always see the old version of it inside the iPhone simulator. Where does it find that old version?

What I've done:

  1. Window -> Organizer -> Project -> Delete Derived Data
  2. Product -> Clean
  3. Inside the IPhone simulator, I tried resetting it.
  4. I tried deleting the project and recreating it (from SVN)
  5. I deleted everything in Library->Developer->Xcode, Library->Delveoper->Application Support->iPhone simulator, Library->Developer->Application->Interface Builder 3.0

And I still see the old version... Is it compiled somewhere inside the interface builder with the button or something like that? Weird... really weird.

Note: I'm able to localize an image button if I add a new image, but using old existing image is always showing me the old version.

Upvotes: 0

Views: 1113

Answers (3)

quo
quo

Reputation: 21

Delete the App in iPhone Simulator (same way you would delete it on real iPhone) and try it again.

Upvotes: 2

mrmuggles
mrmuggles

Reputation: 2141

Solution : My project contained images like [email protected] (for IPad I guess). By also localizing those + clean + build + reset IPhone Sim settings, it worked. Go figure.

Also, when I add another language for the @2x images, I have to manually add the image in the other xx.lproj (where XX is the language code) with the finder because somehow XCode doesn't it.

Upvotes: 2

Alan Moore
Alan Moore

Reputation: 6575

I have encountered a similar problem to this where the XIB file would not accept modifications. I eventually fixed by renaming the XIB file and then changes were accepted. Worth a try in your case I think.

Upvotes: 0

Related Questions