Nitobi
About Nitobi
Services
Products
Home -> Blogs -> Dave Johnson

Dave Johnson

Archive for the 'iphone' Category

iPhone Comes to Canada - Almost

April 29th, 2008

Finally Rogers and Apple have agreed on a deal to bring the iPhone to Canada.

Not that I particularly care since I am a big fan of my Blackberry Curve. Multitouch or touch at all is great but when it comes to browsing through emails and doing the things that I do on a daily basis the Curve trackball gets my vote.

IPhone SDK Released!

July 5th, 2007

And of course by “SDK” I mean an Apple SDK that consists of a single HTML page with half a dozen snippits of HTML.

Nonetheless there are some good tidbits there.

I was wondering about some event stuff and here is the general event info:


Gesture Result
Double tap Zoom in and center a block of content
Touch and hold Display an information bubble
Drag Move the viewport or pan
Flick Scroll up or down (depending on the direction of the finger movement)
Pinch open Zoom in
Pinch close Zoom out

Remember, since there is no mouse, hover events will not work.

You can have the iPhone make calls for you from HTML pages using

tel:
in the URL like this:

<a href="tel:1-408-555-5555">1-408-555-5555</a>

An iPhone specific CSS can be applied using the

media
attribute in the
link
element - which most developers probably ignore.

<link media="only screen and (max-device-width: 480px)" href="iPhone.css" type="text/css" rel="stylesheet" />

Also of interest is the viewport meta tag that lets you tell Safari on the iPhone how to scale and zoom your content:

<meta name="viewport" content="width = 320" /> <meta name="viewport" content="initial-scale=2.3, user-scalable=no" />

For lots more good info check out the recent post on Ajaxian and the google group.


Search Posts

You are currently browsing the archives for the iphone category.

Pages

Archives

Categories

All contents are (c) Copyright 2006, Nitobi Software Inc. All rights Reserved
Dave Johnson Entries (RSS) and Comments (RSS).