iPhone development for web heads  Or how to use the web to do pretty much anything Robbie Clutton @robb1e
Whats all this about Objective C? <ul><li>It's a bit like C and C++ </li><ul><li>It's got headers if you remember those </...
Enables dynamic typing </li></ul><li>It's object based </li><ul><li>Kinda-sorta like Java </li></ul></ul>
Objective C <ul><li>Pros </li><ul><li>it's a new thing to learn
Better chance of being accepted into Apple App Store </li></ul></ul><ul><li>Cons </li><ul><li>it's a new thing to learn
It only works on the iPhone
Low reusability </li></ul></ul>
A better way with index.html Enter the UIWebView: NSURL *url = [NSURL fileURLWithPath:[ [ NSBundle mainBundle ] pathForRes...
Simple HTML <ul><li>Pros </li><ul><li>Great for simple data driven applications </li></ul></ul><ul><li>Cons </li><ul><li>N...
A better way with PhoneGap <ul><li>Open source
Cross device
Abstracted device integration </li></ul>
PhoneGap example new Media('beep.wav').play(); ------- Javascript abstraction ------- Device specific library ------- device
PhoneGap <ul><li>Pros </li><ul><li>Can deploy onto multiple devices
Upcoming SlideShare
Loading in …5
×

iPhone development or how to use the web for pretty much anything

1,256 views

Published on

A discussion of the technical options if you're developing iPhone applications with a heavy view from a web developers' perspective.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,256
On SlideShare
0
From Embeds
0
Number of Embeds
34
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

iPhone development or how to use the web for pretty much anything

  1. 1. iPhone development for web heads Or how to use the web to do pretty much anything Robbie Clutton @robb1e
  2. 2. Whats all this about Objective C? <ul><li>It's a bit like C and C++ </li><ul><li>It's got headers if you remember those </li></ul><li>It's message based </li><ul><li>Like Smalltalk (which I'm told is a cool language)
  3. 3. Enables dynamic typing </li></ul><li>It's object based </li><ul><li>Kinda-sorta like Java </li></ul></ul>
  4. 4. Objective C <ul><li>Pros </li><ul><li>it's a new thing to learn
  5. 5. Better chance of being accepted into Apple App Store </li></ul></ul><ul><li>Cons </li><ul><li>it's a new thing to learn
  6. 6. It only works on the iPhone
  7. 7. Low reusability </li></ul></ul>
  8. 8. A better way with index.html Enter the UIWebView: NSURL *url = [NSURL fileURLWithPath:[ [ NSBundle mainBundle ] pathForResource: @&quot;index&quot; ofType:@&quot;html&quot; ]]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; [webView loadRequest:request]; Here's one I built earlier: http://github.com/robb1e/iWeb
  9. 9. Simple HTML <ul><li>Pros </li><ul><li>Great for simple data driven applications </li></ul></ul><ul><li>Cons </li><ul><li>No device integration </li></ul></ul>
  10. 10. A better way with PhoneGap <ul><li>Open source
  11. 11. Cross device
  12. 12. Abstracted device integration </li></ul>
  13. 13. PhoneGap example new Media('beep.wav').play(); ------- Javascript abstraction ------- Device specific library ------- device
  14. 14. PhoneGap <ul><li>Pros </li><ul><li>Can deploy onto multiple devices
  15. 15. Growing community </li></ul></ul><ul><li>Cons </li><ul><li>Concern over Apple policy of 3 rd party libraries </li></ul></ul>
  16. 16. A better way with HTML5 <ul><li>Deploy without the app store
  17. 17. Offline applications with manifest
  18. 18. Offline storage
  19. 19. Network connection status
  20. 20. Some device integration
  21. 21. slideshare.net/remy.sharp/iphone-appleless-apps </li></ul>
  22. 22. HTML5 <ul><li>Pros </li><ul><li>Avoid Apple App Store
  23. 23. Should work on multiple devices </li></ul></ul><ul><li>Cons </li><ul><li>Might use device specific meta-tags </li></ul></ul>
  24. 24. Other worthy mentions <ul><li>jqTouch - jqtouch.com/
  25. 25. iUi - code.google.com/p/iui/ </li></ul>
  26. 26. Bonus Slide <ul><li>Desktop applications can be built using the web too!
  27. 27. Adobe Air uses Webkit, and one XML file later: </li></ul><content>index.html</content> <ul><li>And one command later: </li></ul>adl application.xml <ul><li>And you have a desktop/web application </li></ul>
  28. 28. Your options <ul><li>Build a native iPhone app using Objective-C
  29. 29. Build a HTML application and deploy as native
  30. 30. Build a HTML application using an abstraction library (e.g. PhoneGap)
  31. 31. Build a HTML application and take advantage of HTML5 to avoid the Apple Store </li></ul>
  32. 32. Why Web Works Atwood's Law : any application that can be written in JavaScript, will eventually be written in JavaScript. http://www.codinghorror.com/blog/archives/001296.html

×