Latest 0.0.2
Homepage https://github.com/PengHao/Dic2CoreDataAutoWriter
License Apache Licence 2.0
Platforms ios 8.0
Authors

自动将对应的字典类型数据转化为CoreData的存储类型,entity需要实现EntityProtocol接口,然后直接调用insert方法既可以插入一个新的entity,也可以调用updateData方法直接更新数据

class Entity: NSManagedObject, EntityProtocol

let entity1 = Entity.insert(info: infoDic, context: context);

Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform:ios, '8.0'
use_frameworks!
target 'Demo' do
    pod 'Dic2CoreDataAutoWriter'
end

Latest podspec

{
    "name": "Dic2CoreDataAutoWriter",
    "version": "0.0.2",
    "summary": "auto write dictionary to coredata entity",
    "description": "Auto write dictionary to coreData Entity",
    "homepage": "https://github.com/PengHao/Dic2CoreDataAutoWriter",
    "license": "Apache Licence 2.0",
    "authors": {
        "wolfpeng": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/PengHao/Dic2CoreDataAutoWriter.git",
        "tag": "0.0.2"
    },
    "source_files": [
        "Dic2CoreDataAutoWriter",
        "Dic2CoreDataAutoWriter/**/*.{h,swift,m}"
    ],
    "exclude_files": "Classes/Exclude",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This