Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-15-2011, 11:55 PM   #1 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 2
mvallance is on a distinguished road
Question Images in html files

First up- I'm new to iPhone programming. Ok .. here's my simple question.

I want to add an image to a html file in my project.
I have added a png file to Resources folder.
Created a html file which works with text on the Simulator.
However, there is no image, only an image box and the alt text.

Obviously this is not web page editing so what am I neglecting?

Thanks.
Michael
mvallance is offline   Reply With Quote
Old 02-15-2011, 11:58 PM   #2 (permalink)
Registered Member
 
manojb's Avatar
 
Join Date: Jan 2011
Posts: 263
manojb is on a distinguished road
Default

Quote:
Originally Posted by mvallance View Post
First up- I'm new to iPhone programming. Ok .. here's my simple question.

I want to add an image to a html file in my project.
I have added a png file to Resources folder.
Created a html file which works with text on the Simulator.
However, there is no image, only an image box and the alt text.

Obviously this is not web page editing so what am I neglecting?

Thanks.
Michael
possibly that would be a thumbnail of the .png image u added in the resources folder... try clicking onto that or try to zoom into it.... may be that works.... no experience with that... me too working on that...
manojb is offline   Reply With Quote
Old 02-16-2011, 01:15 AM   #3 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 2
mvallance is on a distinguished road
Default

<p align="left"><img src="president.png" alt="president" width="240" height="158"> </p>

I added width and height but only alt text appears :-(
Actual image size is 240 x 158 pixels. 100x100ppi resolution.
I see a square with the word president in the Simulator but no image. Maybe the png file has to be modified?

I also read this thread too.
http://www.iphonedevsdk.com/forum/ip...imization.html

Last edited by mvallance; 02-16-2011 at 07:22 AM. Reason: updated due to locating additional info
mvallance is offline   Reply With Quote
Reply

Bookmarks

Tags
images, png

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 369
7 members and 362 guests
cpsclicker, jeroenkeij, Kirkout, PavelMik, teebee74, whitey99
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,666
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, cpsclicker
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:05 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0