Latest 0.0.4
Homepage https://github.com/ubiregiinc/UBICoreData
License MIT
Platforms ios 8.0, requires ARC
Frameworks CoreData
Authors

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'

Latest podspec

{
    "name": "UBICoreData",
    "version": "0.0.4",
    "summary": "CoreData wrapper for iOS",
    "homepage": "https://github.com/ubiregiinc/UBICoreData",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "Yuki Yasoshima": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/ubiregiinc/UBICoreData.git",
        "tag": "0.0.4"
    },
    "source_files": "UBICoreData/*",
    "frameworks": "CoreData"
}

Pin It on Pinterest

Share This