Advertisement
Guest User

Untitled

a guest
Apr 21st, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             [ModelFacade batchSaveArray:tempArray block:^(NSManagedObjectContext *ctx, NSDictionary *lookupDictionary) {
  2.                
  3.                 City *city = [City MR_createEntityInContext:ctx];
  4.                 city.ident = stringForObject(lookupDictionary[@"ID"]);
  5.                 city.cityId = numberForObject(lookupDictionary[@"CITY_ID"]);
  6.                 city.cityName = stringForObject(lookupDictionary[@"NAME"]);
  7.                 city.user = [ModelFacade currentUserInContext:ctx];
  8.                
  9.             } completion:^(BOOL success, NSError *error) {
  10.                 if (success == YES) {
  11.                    
  12.                 }
  13.                 else
  14.                 {
  15.                     PO(error);
  16.                 }
  17.             }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement