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

前端 未结 4 1459
南笙
南笙 2021-02-10 00:01

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:38

    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.

提交回复
热议问题