UBICoreData 0.0.8

UBICoreData 0.0.8

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2023

Maintained by Yuki Yasoshima, isaragi, Hideyuki Okuni, Ryotaro Seki, Yayoi Oshio, Hiroki Ochiai, ubibot.



  • By
  • Yuki Yasoshima

UBICoreData

CI Status Version License Platform

UBICoreData is based on NLCoreData. This library can use more than one store.

Requirements

iOS8.0 or later
Xcode7.1 or later
ARC

Usage

// Make data store
NSURL *storeURL = <Your Store URL>
UBICoreDataStore *dataStore = [[UBICoreDataStore alloc] initWithModelName:@"YourModelName" storeURL:storeURL];

NSManagedObjectContext *context = dataStore.mainContext;

Person *person = [Person insertInContext:context];
person.name = @"Ubi Taro";

Person *samePerson = [Person fetchSingleInContext:context predicate:@"name == 'Ubi Taro'"];

// Save to persistent store
[context saveToPersistentStore];

Installation

UBICoreData is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'UBICoreData'