Discussion Forums  >  Uncategorized

Replies: 3    Views: 477

oldcoder
Apple Fan
Profile
Posts: 12
Reg: Jul 25, 2011
tri cities
120
08/15/11 08:09 PM (14 years ago)

Question Mark on Image

I must be the only one who can't put an image in the header. I get a question mark on every attempt. I have sized them at 320 pixels by 150 pixels in Photoshop. I have gone in through xcode and put picture House1.jpg, House 320.psd, and a bunch more. Then I simply enter the name in the header image box, with the case sensitive name. Regardless of what file I have (all of which show up in the xcode BT_image area) I get a question mark. I know I am doing something wrong but after 3 hours, I wonder if there is a simple answer. For now, no pictures on my app. Thanx
 
andydahl
Aspiring developer
Profile
Posts: 209
Reg: Jul 20, 2011
Villa Grove
4,540
like
08/15/11 08:20 PM (14 years ago)
You also need to specify the height and width of the image. This is done in the Header Image Layout directly below the Header Image section. Anytime you add a file of any kind to Xcode, you must Stop the simulator and then Run it again to see the changes. I think this will solve your issues! :)
 
oldcoder
Apple Fan
Profile
Posts: 12
Reg: Jul 25, 2011
tri cities
120
like
08/15/11 08:51 PM (14 years ago)
Thanks a bunch. Stop by Jonesborough TN and I buy you a cup of coffee. This really baffled me. Thanks again.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
08/16/11 12:34 AM (14 years ago)
This is a good tip (height / widht) but should not explain the quesiton mark. The question marks should be showing when the source-code cannot find the image. It looks in the project build, then the internet if a URL is provided. What does the console show? Open the console with the app running, it should show you where it's looking for the image. If it's looking in the project, and can't find it, I'll be you didn't get it added to the Xcode project properly? Just a hunch. Dragging it into the folder you downloaded from your contorl panel is not enough, you need to drag it into Xcode and 'add files' to the project.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.