Discussion on iphone-development-standards

6 views
Skip to first unread message

HairyPotter

unread,
Jun 19, 2007, 1:35:44 PM6/19/07
to iPhoneWebDev
Hi, according to this page
http://www.gasapp.com/iphone/
appears that the real viewable area of the iPhone is 320 x 396 pixels
and not 320 x 480.

Kevin Darling

unread,
Jun 19, 2007, 3:19:15 PM6/19/07
to iPhoneWebDev
On Jun 19, 1:35 pm, HairyPotter <magnol...@gmail.com> wrote:
> Hi, according to this pagehttp://www.gasapp.com/iphone/

> appears that the real viewable area of the iPhone is 320 x 396 pixels
> and not 320 x 480.

Ooooh Google is evil. I think Groups tried to make me top-post. Hate
that.

Anyway you're right. Top and bottom Safari menus take up about 40
pixels each. The top address bar goes away if you scroll, and we're
hoping that doing a software scroll of one pixel down will make it
automatically go away. Or perhaps some activity. Don't know.

As for the bottom menu, that's a real pain, and hopefully Apple has a
plan for that. Not only does it use up valuable screen real estate,
but it gets in the way of the prime handheld directive of keeping our
buttons near the bottom. But okay, if that's the way it is, then
we'll just need a buffer space and place buttons in the middle. What
we don't want to happen, of course, is have users accidentally hit
Back and lose their work.

Kev

Ted Tschopp

unread,
Jun 19, 2007, 9:14:16 PM6/19/07
to iPhoneWebDev
A couple thoughts:

1. Isn't there a javascript event for ondoubleclick? Peraps Safari
will do strange things to it.
2. There should also be some padding around form elements in general
to make it easier to click on the one you want. Also a screen resize
event might get fired due to the keyboard popping up. This means we
might want to have a event attached to each form element to handle it
special.
3. The more I think about it I hope there is a nice way to make an
iPhone .css sheet and load it specifically.

Ⓙⓐⓚⓔ

unread,
Jun 19, 2007, 9:37:01 PM6/19/07
to iphone...@googlegroups.com
more thoughts about safari on the iphone...

1.how will the iphone handle hover or mousover events? will they be ignored??

2. will it support local pages , that access local files, such as the itunes library?

3. will I be able to send a page as an e-mail or a link as an sms?

I guess I can wait until I have one in my hands...

--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ

DayLateDon

unread,
Jun 20, 2007, 9:29:29 AM6/20/07
to iPhoneWebDev
Hello ...

On Jun 19, 12:35 pm, HairyPotter <magnol...@gmail.com> wrote:
> Hi, according to this pagehttp://www.gasapp.com/iphone/


> appears that the real viewable area of the iPhone is 320 x 396 pixels
> and not 320 x 480.

I just don't understand the 396.

Based on product shots of iPhone blown up to have a screen width of
320 ...

The full screen height is 480.
The system status bar (time, wireless, battery, etc) is about 20.
The Safari title/address bar (top) is about 60.
The Safari toolbar (bottom) is about 45.

It would seem that the viewing area would be, at a maximum, equal to
what's left over after "permanent" elements are removed: "full -
status bar - toolbar = 415". But that's almost 20 pixels larger than
the GasApp report, a difference that cannot easily be attributed to
errors in image scaling.

Subtract the title bar and we're down to 355, or 40 pixels smaller
than the GasApp report; another huge discrepancy. So, 396 does not
appear to reflect the space between the Safari bars.

Interestingly, "full - system - title = 400", which matches the 396
well enough, but this would mean that the "viewable area" includes
space used by the bottom toolbar. That doesn't seem very viewable to
me.

What am I missing?

(Hmmm ... Maybe the toolbar can be hidden. I have no idea how you'd
toggle the hiding and showing, but this would neatly explain the
dimensions.)

--"Day Late" Don

Kevin Darling

unread,
Jun 20, 2007, 9:14:47 PM6/20/07
to iPhoneWebDev
On Jun 20, 9:29 am, DayLateDon <dayl...@gmail.com> wrote:
> I just don't understand the 396.
>
> Based on product shots of iPhone blown up to have a screen width of
> 320 ...
>
> The full screen height is 480.
> The system status bar (time, wireless, battery, etc) is about 20.
> The Safari title/address bar (top) is about 60.
> The Safari toolbar (bottom) is about 45.

Don, I went back and measured again (perhaps with a different
picture?) and got closer to your values this time.

So it would seem that when an app first appears, it would have:

480 - 20 - 60 - 45 = ~355.

Then if you scroll and make the address bar disappear, you get back
60:

480 - 20 - 45 = 415

And if the bottom menubar can be taken away, we end up with the most:

480 - 20 = 460

As you say, clearly something doesn't match that article.

Kev

nroose

unread,
Jun 27, 2007, 4:28:07 PM6/27/07
to iPhoneWebDev
Sure would be nice if someone would create a decent standard iphone
css file that made the page look similar to the iPhone internal app
look.

Neven

unread,
Jun 27, 2007, 5:21:09 PM6/27/07
to iPhoneWebDev
I'm working on a library of HTML/CSS and images for controls matching
those in iPhone's built-in apps. I'm reluctant to release them until I
thoroughly test them on iPhone. I may post them to this group after
that.

Anoop Ranganath

unread,
Jun 27, 2007, 5:35:04 PM6/27/07
to iPhoneWebDev
Quite frankly, I would pay for this. I expect Apple will be doing the
same really shortly though.

nroose

unread,
Jun 27, 2007, 5:36:18 PM6/27/07
to iPhoneWebDev
Can I assume that if I build pages with css class names that I will be
able to easily switch to using your style sheets?

Neven

unread,
Jun 27, 2007, 5:38:23 PM6/27/07
to iPhoneWebDev
It depends. Some of the elements will be as easy as that, but others
may require a more complex layout, especially if you want your UI to
look good in portrait and landscape modes.

BikingBill

unread,
Jun 30, 2007, 1:05:35 AM6/30/07
to iPhoneWebDev
Any word on what audio commands will work on a web page?

Also, how good is iPhoney (1.1) for testing?

Christopher Allen

unread,
Jun 30, 2007, 2:22:10 AM6/30/07
to iphone...@googlegroups.com
On 6/29/07, BikingBill <willia...@gmail.com> wrote:
> Any word on what audio commands will work on a web page?

That is not clear yet -- right now the only sure way is to just have a
download link to an mp3.

> Also, how good is iPhoney (1.1) for testing?

All iPhoney is is a webkit app with a viewport set to the size of the
iPhone. Theoretically since it uses webkit, bugs related to webkit
will express themselves in iPhoney. However, the iPhone is a lot more
then webkit, so it is missing many/many features to accurately emulate
the iPhone. But it is better then nothing if you don't have an iPhone
yet.

For instance, we got Skotos web-based chat games running in iPhoney
using AJAX, so we have a good hope that it will work in the iPhone as
well after only a little bit of tweaking.

-- Christopher Allen

BikingBill

unread,
Jun 30, 2007, 2:30:03 AM6/30/07
to iPhoneWebDev
Thank you. We have reports of mouse event issues. See message on
game testing.

On Jun 29, 11:22 pm, "Christopher Allen"
<Christoph...@iPhoneWebDev.com> wrote:

Grayson

unread,
Jul 9, 2007, 8:30:19 PM7/9/07
to iPhoneWebDev
Definitive useful pixels for web page design on iPhone

Portrait mode

(with URL bar)
320px wide, 356px high [ 20 + 60 + 356 + 44 = 480 ]

(without URL bar)
320px wide, 416px high [ 20 + 416 + 44 = 480 ]


Landscape mode

(with URL bar)
480px wide, 207px high [ 20 + 60 + 207 + 33 = 320 ]

(without URL bar)
480px wide, 267px high [ 20 + 267 + 33 = 320 ]

crash

unread,
Jul 9, 2007, 10:20:57 PM7/9/07
to iPhoneWebDev
grayson,

the first 2 sets are right

the second 2 sets you have written are off by 1 pixel...

(with URL bar)
480px wide, 208px high [ 20 + 60 + 208 + 32 = 320 ]

(without URL bar)
480px wide, 268px high [ 20 + 268 + 32 = 320 ]


they can be found here...
http://developer.apple.com/iphone/designingcontent.html

click on the "Optimize for Page Readability" heading


best,
crash

Reply all
Reply to author
Forward
0 new messages