Discussion Forums  >  Uncategorized

Replies: 2    Views: 230

basement
Aspiring developer
Profile
Posts: 488
Reg: Apr 07, 2011
Ontario
4,880
11/17/11 12:59 PM (14 years ago)

iOS images in html text files

I'm revisiting an App I started some time ago and am having a problem with images. I want to reference them from within the app rather than as external images. eg#1: an image called hoursbg.png. I copied the png file to the BT_Images folder and in the HTML text page, I referenced the image in the advanced screen properties / screen background image, and added hoursbg.png to the 'image name small device' and 'image name large device' boxes, and chose the full screen option. I then downloaded the app code from BuzzTouch and loaded it up on my iphone. The images don't appear in my app. eg#2: in an html text page, I added my code to BuzzTouch and referenced a couple of images that are in the BT_Images folder. In the code, it's .... src=mapleleaf.gif .... but this image doesn't show up either. what am I doing wrong?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/17/11 01:11 PM (14 years ago)
Hi @basement, You need to make sure you add the images to your project in Xcode as well. Right click on BT_Images in the folder view of your project in Xcode, select Add Files, and navigate to the ones you need. If the images are not listed in the folder view of your project, you'll never see them, even if they are actually in the BT_Images folder on your hard drive. Make sense? If not, let me know! Mark
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
11/17/11 01:16 PM (14 years ago)
Mark's right. You have to add them to xCode. If you do the Add Files... like Mark said, you'll find your new files easily, because the files that are not already included in the build will be bolder. Alternately, you can drag/drop the files from Finder into xCode, and it will prompt you through the Add Files process.
 

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.