iOS Frameworks<br />Samuel Chow, MobyFab<br />@Cybersam<br />
End-to-End Platform<br />More apps are connected to remote RESTful endpoints for richer content and user experience<br />B...
iOS Frameworks<br />REST<br />ASIHTTPRequest – http://allseeing-i.com/ASIHTTPRequest/<br />JSON Framework (aka SBJSON) – h...
Three20 Visual<br />Out of the box, you get these for free<br />Custom Views and Buttons<br />Tab and Grid<br />Table Item...
Three20 Non-visual Utilities<br />Network Caching<br />Remote image retrieval<br />Data persistence<br />HTTP Request/Resp...
Three20 Object Flow<br /><ul><li> Data representation
 Prepare to send request
 Parse response
 Visual configuration
 Visual layout
 Transform data objects to table items
Upcoming SlideShare
Loading in …5
×

MobileCamp Boston - iOS Frameworks

3,365 views

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
2 Comments
5 Likes
Statistics
Notes
No Downloads
Views
Total views
3,365
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
52
Comments
2
Likes
5
Embeds 0
No embeds

No notes for slide

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 – http://allseeing-i.com/ASIHTTPRequest/<br />JSON Framework (aka SBJSON) – http://stig.github.com/json-framework/<br />YAJL – http://github.com/gabriel/yajl-objc<br />RESTKit – http://getsharekit.com/<br />ShareKit – http://getsharekit.com/<br />Visual<br />Three20 – http://three20.info<br />Core-Plot – http://code.google.com/p/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 />http://api.twitter.com/1/statuses/public_timeline.json<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 />

×