iPhone Development ‘Notes and Quirks’

iphonedevcampHave you started ‘hacking’ on the iPhone yet?  We are pushing on the development pretty hard in preparation for iPhoneDevCamp next week.  The ajaxian folks have compiled several ‘notes and quirks’ with regard to development on the iPhone:

  • Poking around the DOM, I don’t see any special objects, with the possible exception of window.offscreenBuffering (set to true).
  • Bookmarklets work, although you have to go through the bookmarks menu to get to them.
  • Safari crashes are handled gracefully - the main screen fades back in, and you can jump right back into Safari. It will then load page you were visiting when it crashed.
  • Drag and drop, and other behaviors based on picking up mousemove events, don’t work. CSS-based element drag and drop doesn’t work either. Dragging one finger around the iPhone’s version of Safari causes the window to scroll, and that’s it. I assume that scroll events do work. I’m sure somebody is already working on a version of drag and drop based on window scrolling.
  • For documents with no width set, the iPhone uses a default width of 980px.
  • You do not get “mousedown” when you touch the screen. You get “mousedown” and “mouseup” at the same time when you release your finger. The “mousemove” event does not seem to fire at all. There is no way to handle double-clicking because that is the action for zooming, and calling event.preventDefault() doesn’t seem to override that.
Alexander Muse | June 30th, 2007, 9:10 pm | Tags: ajaxian, apple, att, dom, iphone, safari | Bookmark on del.icio.us | Digg It | share with: elfURL
You can leave a response, or trackback from your own site.

2 Responses to “iPhone Development ‘Notes and Quirks’”

  1. Christopher Allen Says:

    You might be interested in the http://www.iPhoneWebDev.com community — there has been a lot of discussion today on how best to do viewports, how to turn off scaling, and other issues of web design and web apps for the iPhone. There is also a barcamp conference next week in SF, info at http://www.iPhoneDevCamp.com.

  2. Big in Japan Says:

    Yep, we wrote about it a while back :
    http://www.biggu.com/2007/06/16/iphone-developers-camp/

Leave a Reply







© 2005-2007 Big in Japan, an Architel company. All Rights Reserved. RSS Feed
1950 Stemmons Freeway, Suite 2022 • Dallas, Texas 75207 • 214.550.3600 Office 214.550.2001 FAX