Discussion Forums  >  Uncategorized

Replies: 2    Views: 1994

Davey
Aspiring developer
Profile
Posts: 2
Reg: Jul 10, 2011
Cardiff
20
07/22/11 10:42 AM (14 years ago)

Problems with images not appearing in iOS Simulator (using v1.5)

I'm having a problem with images. I cannot get the custom images (.png) i've added as menu buttons to display in the iOS simulator. I've checked the image names are correctly referenced in my app and have tried dragging the images into the BT_images folder in Xcode and adding them through Xcode via BT_images>Add files to... I can see the images in BT_images/Xcode and when I click on them in Xcode they open. They just don't display when I run the simulator. Would the image size be causing a problem? Does it have to match the button size? Any suggestions would be great...
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
07/22/11 10:49 AM (14 years ago)
I had this problem at one time as well, and it was because I had NOT specified an image size in buzztouch. As soon as I did, the images displayed properly. I could even adjust the image sizes using values that did not reflect the true image size, and it still worked. So, it seems that the iPhone simulator expects some image size to be referenced. Also...make sure you have the appropriate image file format. Some images are .png only, and some can handle .png and .jpg. Reference the buzztouch documentation to be sure you are using the correct format. Mark
 
Davey
Aspiring developer
Profile
Posts: 2
Reg: Jul 10, 2011
Cardiff
20
like
07/23/11 01:54 AM (14 years ago)
Mark, many thanks for your suggestion about specifying image sizes. I tried it and the images now appear (providing I quit the simulator and restart it each time I make a change rather than just hit refresh). Cheers!
 

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.