Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 1.04 KB

README.md

File metadata and controls

47 lines (39 loc) · 1.04 KB

This app demostrates how to use the Sync library in Objective-C.

Image

{
  "stories":[
    {
      "id":47333,
      "title":"Site Design: Aquest",
      "vote_count":6,
      "created_at":"2015-04-06T13:16:36Z",
      "num_comments":6,
      "submitter_display_name":"Chris A.",
      "comments":[
        {
          "body":"Beautiful.",
          "created_at":"2015-04-06T13:45:20Z",
          "depth":0,
          "user_display_name":"Sam M.",
          "upvotes_count":0,
          "comments":[

          ]
        }
      ]
    }
  ]
}

Model

Model

Sync

[Sync changes:JSON[@"stories"]
inEntityNamed:@"Story"
    dataStack:dataStack
   completion:^(NSError *error) {
       [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
   }];