Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

MobileCamp Boston - iOS Frameworks


Published on

My talk at MobileCamp Boston, Feb 19 2011. The deck covers materials for constructing a simple Twitter reader using Three20 and RESTKit frameworks.

Published in: Technology
  • Login to see the comments

MobileCamp Boston - iOS Frameworks

  1. 1. iOS Frameworks<br />Samuel Chow, MobyFab<br />@Cybersam<br />
  2. 2. End-to-End Platform<br />More apps are connected to remote RESTful endpoints for richer content and user experience<br />Better visuals + HTTP connection + JSON parser<br />
  3. 3. iOS Frameworks<br />REST<br />ASIHTTPRequest –<br />JSON Framework (aka SBJSON) –<br />YAJL –<br />RESTKit –<br />ShareKit –<br />Visual<br />Three20 –<br />Core-Plot –<br />
  4. 4. Three20 Visual<br />Out of the box, you get these for free<br />Custom Views and Buttons<br />Tab and Grid<br />Table Items<br />Labels<br />Special View Controllers<br />
  5. 5. Three20 Non-visual Utilities<br />Network Caching<br />Remote image retrieval<br />Data persistence<br />HTTP Request/Response<br />JSON parsing (via JBSON or YAJL)<br />View navigation<br />CSS-like styling mode<br />
  6. 6. Three20 Object Flow<br /><ul><li> Data representation
  7. 7. Prepare to send request
  8. 8. Parse response
  9. 9. Visual configuration
  10. 10. Visual layout
  11. 11. Transform data objects to table items
  12. 12. navigation URLs</li></li></ul><li>Demo<br /><br />
  13. 13. Low-level vs High-level<br />Three20 and common REST Frameworks<br />Too much time spent on crafting request, parsing responses, and creating representation of remote data<br />Enter RESTKit<br />High-level abstraction of REST operations<br />It enables you to focus on modeling RESTful objects to your in-memory object<br />Conversely, if you want lower level, more complete HTTP swiss-army knife then consider ASIHTTPRequest<br />
  14. 14. Three20 + RESTKit Integration<br />RESTKit provides the RKRequestTTModel as a convenient class for integration with Three20<br />No need to supply the parsing logic in requestDidFinishLoad:<br />Simply map the data object properties to the JSON elements<br />Supply the URL (host and path)<br />RESTKit will do the heavy lifting for you<br />
  15. 15. DOWNLOAD CODE + <br />PRESENTATION SLIDES<br />FROM<br />HTTP://CYBERSAM.COM/<br />Thank You<br />Reference and credit: Blake Watters, Two Toasters, and Three20<br />