Hdc09 I Phone Dev Connecting To Web

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Hdc09 I Phone Dev Connecting To Web - Presentation 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
    SlideShare Zeitgeist 2009

    + Andy PetersAndy Peters Nominate

    custom

    136 views, 0 favs, 1 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 136
      • 129 on SlideShare
      • 7 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 2
    Most viewed embeds
    • 7 views on http://www.ninthdivision.com

    more

    All embeds
    • 7 views on http://www.ninthdivision.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories