How to dyanmic create a new entity (table) via CoreData model?

前端 未结 4 1288
轮回少年
轮回少年 2021-02-09 23:59

I want to create a new Entity (table) in SQLite. My code is as follows:

+(BOOL)CreateDataSet:(NSManagedObjectModel *) model  
    attributes:(NSDictionary*)attri         


        
4条回答
  •  后悔当初
    2021-02-10 00:44

    Please ignore CoreData if you want to create entities dynamically, try SQLite (please use the magical FMDB library), it won't let you down.

    Please note that SQLite/FMDB does not support iCloud.

提交回复
热议问题