Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ModelFacade batchSaveArray:tempArray block:^(NSManagedObjectContext *ctx, NSDictionary *lookupDictionary) {
- City *city = [City MR_createEntityInContext:ctx];
- city.ident = stringForObject(lookupDictionary[@"ID"]);
- city.cityId = numberForObject(lookupDictionary[@"CITY_ID"]);
- city.cityName = stringForObject(lookupDictionary[@"NAME"]);
- city.user = [ModelFacade currentUserInContext:ctx];
- } completion:^(BOOL success, NSError *error) {
- if (success == YES) {
- }
- else
- {
- PO(error);
- }
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement