Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4092656
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:31:08+00:00 2026-05-20T19:31:08+00:00

This one has me confounded, so I’ll try to go through the chronology so

  • 0

This one has me confounded, so I’ll try to go through the chronology so someone smart than I am can show me where I’m going wrong.

Everything was working perfectly on my app, both on the device and on the simulator. I have an image file, myimage.png, that is located in the directory where my project is and has been added to the project. It shows up in XCode and everything.

I build, run, and things work as planned.

Then I decided to get clever in photoshop and spruce up my image with a bit more color. In the finder, I deleted myimage.png from the directory where my project is located. Then I saved the new image as myimage.png in that very same directory. Back in XCode, the file shows up in the project and looks just as nice as planned.

I build, run, and no image shows up. WTF??!?

Here are my two questions, in order of importance:

  1. How do I fix this so that my image shows up again?

  2. What have a done wrong in this process?

Thanks!

EDIT: Here is the code where I am calling the image. In myViewController.m:

- (void)viewWillAppear:(BOOL)animated {
     [super viewWillAppear:animated];
     // SOME CODE THAT DOES OTHER THINGS UNRELATED TO imageView
     [imageView setImage:[UIImage imageNamed:@"myimage.png"]];
     // MORE CODE THAT DOES OTHER THINGS UNRELATED TO imageView
}

ANOTHER EDIT: Not one single character of my code changed between the app working and not working. I appreciate all of the suggestions since I clearly cannot figure this one out on my own, but the problem is most likely not with the code.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T19:31:09+00:00Added an answer on May 20, 2026 at 7:31 pm
    1. easy: in xCode delete the file reference and the files themselves and then import it again…

    2. mhm… when you changed your image was xCode opened? it may have seen somehow it’s been deleted and lost the link… if you change it xCode could “choose” to NOT include it in the target mainBundle when you build your project… in xCode select the file and see if the checkMark on target is selected:

    enter image description here

    if not it won’t be included in you app (and this answers to your n:1 question too)…

    maybe a better way to add a resource files which could be probably be modified by other programs in future while yourProject could be opened (i do it with an html site to be included, jpg and gif too) is to put them in a subFolder of your project and then add all that folder to your xCode project AND in the dialog window choose:

    “create folder references…”

    enter image description here

    that will create a blue folder in xCode and all its contents will refresh automatically if you change, add, delete files or subfolder inside it…

    BUT remember that the subFolders will exist in the same tree-order in your app mainBundle, so if you need to load a .png you need to specify where to find it.

    PS
    check also that the file name is exactly the same of the old file, including UpperCase chars
    (“a” != “A”)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This one has me stumped. I've searched and found similar questions but I can't
So this one has me stumped; hopefully a kind soul can help me out.
I know this one has been asked before, however I can't seem to find
This one has me stumped, since I don't think this can be done with
I have this code and this one has more than one data from the
This one has been stumping me for a while. But I'm no expert. This
This one has me scratching my head, so I'm hoping a second pair of
This one has proven to be a little tricky for me so far. I
This one has me stumped. <div id=container> <div id=store></div> <div id=contact></div> </div> I'm looking
This one has me stumped. Here are the relative bits of code: public AgencyDetails(Guid

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.