4. Outline
1. Capabilities of the iPhone
2. Design Practices for Web (standards)
3. iPhone speciļ¬c design principles
source: http://developer.apple.com/iphone/designingcontent.html
6. Connectivity
ā¢ EDGE = AT&Tās network for the iPhone
ā¢ WiFi - iPhone supports wiļ¬
ā¢ Hack can activate phone for WiFi only
7. Input Device
ā¢ Input Device = Two Fingers
ā¢ Two Fingers <> Mouse
http://developer.apple.com/iphone/designingcontent.html
8. Input Methods
ā¢ Double tap = Zoom in or Center Blocks
ā¢ Touch and hold = Display Info Bubble
ā¢ Drag = Move the viewport
ā¢ Flick = Scroll up or down
ā¢ Pinch open = zoom in
ā¢ Pinch out = zoom out
9. Negatives of Input
ā¢ No copy/paste! WT_?
ā¢ Density of links is an issue
ā¢ Double taps to blocks depends on html
(DIV, OL, UL, TABLE, IMAGE)
14. Standards Based Dev
ā¢ HTML 4.0.1
ā¢ XHTML 1.0
ā¢ CSS 2.1 and Partial CSS 3.xx
ā¢ Javascript 1.4 including DOM support
ā¢ AJAX technologies, inc XMLHTTPRequest
15. Think Windowless
ā¢ viewport <> windows
there are no stinkinā windows!
ā¢ automatic scaling
apple knows better than you silly rabbit!
16. Avoid
ā¢ Avoid W i d e Blocks of Text
ā¢ Avoid using html to resize images
ā¢ Avoid framesets
ā¢ Legacy CSS and JavaScript (slow!)
17. Does NOT Support
ā¢ No: WML (wireless markup language)
ā¢ No: Flash ļ¬les
ā¢ No: Downloads
ā¢ No: Files over 10 Megs
ā¢ No: Images over 2 Megs (some tricks?)
18. Use
ā¢ Stick with the standards
ā¢ Separate HTML, CSS & JavaScript
ā¢ Columns and Blocks
ā¢ Has full PDF ļ¬le support
ā¢ Did I mention Columns and Blocks?
20. Be Speciļ¬c With Design
ā¢ You CAN render pages speciļ¬c to iPhone
ā¢ user_agent for iPhone = safari:
ā¢ Mozilla/5.0
(iPhone; U; CPU like Mac OS X; en)
AppleWebKit/420+ (KHTML, like Geck0)
Version/3.0 Mobile/1A543a Safari/419.3
22. iPhone StyleSheet
ā¢ <link media=āonly screen and (max-device-
width: 480px)ā href=āiPhone.cssā
type=ātext/cssā rel=āstylesheetā />
ā¢ Other browsers ignore āonly screenā part
23. Rich Media
ā¢ Streams movies and audio using HTTP
ā¢ EDGE and Wi-Fi networks
ā¢ Servers must support byte-range requests
ā¢ No Flash / No Downloads
ā¢ No streaming
24. Best Practices
ā¢ Use āPoster JPGsā - link image to movie
ā¢ 480 x 320 pixels
ā¢ Pay Attention to Bit Rate
ā¢ Reference Movies
ā¢ More: http://developer.apple.com/quicktime/quicktimeintro/tools/
ā¢ or the iPhone Developers Guide
25. Limits
ā¢ 10 MB File Size Limit
ā¢ Javascript
ā¢ 5 second limit per each top level entry
ā¢ Limited Media Types (see guide)
26. Tips
ā¢ Hold āsleepā (top) to power off
ā¢ Hold āhomeā (front) and āsleepā (top)
buttons at the same time for 8 seconds to
hard reset
ā¢ youTube is NOT a speciļ¬c app for iPhone
and not the ārealā youtube. Learn from this.
31. Developer Resources
ā¢ Apple iPhone Dev Guide:
ā¢ http://developer.apple.com/iphone/
designingcontent.html
ā¢ www.iphonewebdev.com
ā¢ http://groups.google.com/group/
iphonewebdev
ā¢ http://barcamp.org/iPhoneDevCamp
32. Conclusion
ā¢ New Device = New Emergent Best
Practices
ā¢ Fingers are NOT the same as mice
ā¢ WiFi is a big factor for the iPhone
ā¢ EDGE still is kinda-lame, but it works
ā¢ Developers need to train on new standards
33. Closing Thoughts
ā¢ This presentation was completed on the
Monday after iPhoneDevCamp. Please keep
in mind that things will change and update
accordingly. Mākay? - Thanks!