Your SlideShare is downloading. ×
Hdc09   I Phone Dev Connecting To Web
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Hdc09 I Phone Dev Connecting To Web

813
views

Published on

Published in: Technology, News & Politics

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
813
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
14
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. iPhone Development Connecting to the cloud
  • 2. Ninth Division real legit growing apple platforms development company in omaha, ne www.ninthdivision.com @ninthdivision Andy Peters @andypeters
  • 3. Midwest Mobile Developers connecting all the mobile developers in the region (Nebraska, Iowa, Kansas, Missouri) http://groups.google.com/group/midwest-mobile-developers
  • 4. Getting started with iPhone Development
  • 5. Getting started with iPhone Development
  • 6. flickr: kmulcahy
  • 7. flickr: kmulcahy
  • 8. iPhone The Cloud
  • 9. Why? flickr: Waldo#4
  • 10. 30 Million iPhone’s Sold as of Sept. 2009
  • 11. 20 Million iPod Touches Sold as of Sept. 2009
  • 12. User experience.
  • 13. Offline usage.
  • 14. Unreliable Connectivity.
  • 15. Social networks.
  • 16. More devices...
  • 17. More devices...
  • 18. More devices...
  • 19. More devices...
  • 20. iPhone users use the hell out of social apps
  • 21. 15,604,157 Monthly Active Users Facebook for the iPhone
  • 22. Tweetie 2 for the iPhone
  • 23. Be unique. flickr: Erica Marshall
  • 24. Game’s submitting scores to community.
  • 25. Post high score to twitter.
  • 26. Announce new user profile on Facebook.
  • 27. Music related app uses Last.fm for data.
  • 28. Grab data to populate a map.
  • 29. Some devices are tied directly to the cloud.
  • 30. MORE and MORE!
  • 31. Connection Methods. flickr: barjack
  • 32. Web Services ~= The Cloud
  • 33. XML RESTful please!
  • 34. XML There is no SOAP Client #642 or XML-RPC Client #1,203. You parse it yourself.
  • 35. Options for Parsing XML • libxml2 • Tree-based: easy to parse, tree in memory • Event-driven: less memory, more complex managing state • Text reader: fast, easy to write • NSXMLParser • Event-driven: simpler but less powerful than libXML • No NSXMLDocument on iPhone • expat too!!!
  • 36. XML Code NSXMLParser *parser = [[NSXMLParser alloc]initWithData:....];
  • 37. XML Code NSXMLParser *parser = [[NSXMLParser alloc]initWithData:....];
  • 38. XML [delegate] Code
  • 39. XML [delegate] Code
  • 40. XML Docs. • “Event Driven XML Programming in Cocoa” - ADC • NSXMLParser.h / Supporting doc. • NSXMLParserDelegate.h / Supporting doc. • Sample code: XMLPerformance and SeismicXML • Google: cocoa + nsxmlparser
  • 41. JSON JavaScript Object Notation
  • 42. JavaScript Object Notation • More lightweight than XML • Similar to a Property List • arrays, dictionaries, strings, numbers • Open Source json-framework wrapper for Objective-C • no “official” Apple library (yet)
  • 43. JavaScript Object Notation • If I have a choice, I prefer using JSON • Lightweight • Fast • Easy to parse and map to objects.
  • 44. JSON Looks like { “name” : “Hearful Andrena”, “pets” : 23, “poop-scooping-service” : false, “pet-names” : [“Hanna”, “Nemo”} }
  • 45. Parsing JSON #import <JSON/JSON.h> // Get a JSON string NSString *jsonString = ....; // Parsing will result in Foundation objects id object = [jsonString JSONValue];
  • 46. Using JSON-framework // Create data. NSDictionary *dictionary = ...; // converts into a JSON spring. jsonString = [dictionary JSONRepresentation];
  • 47. UIWebView
  • 48. Best Practices
  • 49. Asynchronous Never parse on the main thread.
  • 50. NSOperation
  • 51. Never assume you know the size of the server response.
  • 52. Delegates methods
  • 53. Show progress.
  • 54. Debugging.
  • 55. Caching
  • 56. Libraries, Frameworks and Wrappers flickr: (Erik)
  • 57. MGTwitterEngine
  • 58. ObjectiveFlickr
  • 59. Facebook Connect
  • 60. iPhone on Rails
  • 61. ASIHTTPRequest
  • 62. Development Demos flickr: TheNixer
  • 63. Development Demos flickr: TheNixer
  • 64. Questions ? flickr: Jim in Times Square
  • 65. ninth Division real legit growing apple platforms development company in omaha, ne www.ninthdivision.com @ninthdivision