MobileCamp Boston - iOS Frameworks
Upcoming SlideShare
Loading in...5
×
 

MobileCamp Boston - iOS Frameworks

on

  • 3,392 views

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

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

Statistics

Views

Total Views
3,392
Views on SlideShare
3,389
Embed Views
3

Actions

Likes
6
Downloads
50
Comments
2

2 Embeds 3

http://www.linkedin.com 2
http://www.verious.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • Thanks
    Are you sure you want to
    Your message goes here
    Processing…
  • Good practice will combine three20 together with asihttprequest, three20 now is improving its networking module.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

MobileCamp Boston - iOS Frameworks MobileCamp Boston - iOS Frameworks Presentation Transcript

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