I Phone Developer Introduction By Eschipul

34
iPhone Web Apps Introduction for Developers Source http://www.flickr.com/photos/eschipul/743621029/

description

Intro to iPhone Development from right after iPhoneDevCamp

Transcript of I Phone Developer Introduction By Eschipul

Page 1: I Phone Developer Introduction By Eschipul

iPhone Web AppsIntroduction for Developers

Source http://www.flickr.com/photos/eschipul/743621029/

Page 2: I Phone Developer Introduction By Eschipul

Source http://www.flickr.com/photos/eschipul/743092489/

iPhoneDevCampSan Francisco July 3-5 2007

Page 3: I Phone Developer Introduction By Eschipul

Source: http://www.flickr.com/photos/eschipul/764938378/

Page 4: I Phone Developer Introduction By Eschipul

Outline

1. Capabilities of the iPhone

2. Design Practices for Web (standards)

3. iPhone specific design principles

source: http://developer.apple.com/iphone/designingcontent.html

Page 5: I Phone Developer Introduction By Eschipul

1) Capabilities

Page 6: I Phone Developer Introduction By Eschipul

Connectivity

• EDGE = AT&T’s network for the iPhone

• WiFi - iPhone supports wifi

• Hack can activate phone for WiFi only

Page 7: I Phone Developer Introduction By Eschipul

Input Device

• Input Device = Two Fingers

• Two Fingers <> Mouse

http://developer.apple.com/iphone/designingcontent.html

Page 8: I Phone Developer Introduction By Eschipul

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

Page 9: I Phone Developer Introduction By Eschipul

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)

Page 10: I Phone Developer Introduction By Eschipul

Source Chris Messina http://www.flickr.com/photos/factoryjoe/763838307/

Page 11: I Phone Developer Introduction By Eschipul

Note Changed Size

Source Chris Messina http://www.flickr.com/photos/factoryjoe/763838307/

Page 12: I Phone Developer Introduction By Eschipul

My Opinion

• ZOOMING GETS OLD. FAST. REALLY.

Page 13: I Phone Developer Introduction By Eschipul

2) Design Practices

• Perfect Size to Watch Charlie by WiFI

Page 14: I Phone Developer Introduction By Eschipul

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

Page 15: I Phone Developer Introduction By Eschipul

Think Windowless

• viewport <> windows there are no stinkin’ windows!

• automatic scaling apple knows better than you silly rabbit!

Page 16: I Phone Developer Introduction By Eschipul

Avoid

• Avoid W i d e Blocks of Text

• Avoid using html to resize images

• Avoid framesets

• Legacy CSS and JavaScript (slow!)

Page 17: I Phone Developer Introduction By Eschipul

Does NOT Support

• No: WML (wireless markup language)

• No: Flash files

• No: Downloads

• No: Files over 10 Megs

• No: Images over 2 Megs (some tricks?)

Page 18: I Phone Developer Introduction By Eschipul

Use

• Stick with the standards

• Separate HTML, CSS & JavaScript

• Columns and Blocks

• Has full PDF file support

• Did I mention Columns and Blocks?

Page 19: I Phone Developer Introduction By Eschipul

iPhone Specific Design

Page 20: I Phone Developer Introduction By Eschipul

Be Specific With Design

• You CAN render pages specific 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

Page 21: I Phone Developer Introduction By Eschipul

iPhone App Links

• Tel: <a href=”tel:1-408-555-1212”>

• Mail: <a href=”mailto:[email protected]”>

• Maps: <a href=”http://maps.google.com/maps?q=houston”> (uses google app)

Page 22: I Phone Developer Introduction By Eschipul

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

Page 23: I Phone Developer Introduction By Eschipul

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

Page 24: I Phone Developer Introduction By Eschipul

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

Page 25: I Phone Developer Introduction By Eschipul

Limits

• 10 MB File Size Limit

• Javascript

• 5 second limit per each top level entry

• Limited Media Types (see guide)

Page 26: I Phone Developer Introduction By Eschipul

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 specific app for iPhone and not the “real” youtube. Learn from this.

Page 27: I Phone Developer Introduction By Eschipul

Accessorize!

• Damien’s $1200 GPS iPhoneAddOn

Source: http://www.flickr.com/photos/eschipul/748489927/

Page 28: I Phone Developer Introduction By Eschipul

Developer Tools• Aptana - like visual interdev but with AJAX

framework support and an iPhone plugin

Source: http://www.aptana.com/

Page 29: I Phone Developer Introduction By Eschipul

Developer Notes

• Icons: icon pngs are 59x60 pixels drop shadow

Page 30: I Phone Developer Introduction By Eschipul

source: http://www.flickr.com/photos/eschipul/750755295/

Page 32: I Phone Developer Introduction By Eschipul

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

Page 33: I Phone Developer Introduction By Eschipul

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!

Page 34: I Phone Developer Introduction By Eschipul

Thanks!

• Ed Schipul

• Co: www.schipul.com

• Blog: brandtobedetermined.com

• Flickr: www.flickr.com/photos/eschipul/

• Twitter: twitter.com/eschipul/