0
首次使用核心数据处理其.xcdatamodeld 我正在使用contentManager作为笔记应用程序。 但我很难创建标准音符。核心数据和内容管理器
contentManager通常用于核心数据吗?我的问题是在哪里?是。
let managedObjectContext = (UIApplication.sharedApplication().delegate as! AppDelegate).managedObjectContext
let entity = NSEntityDescription.insertNewObjectForEntityForName("Note", inManagedObjectContext: ??) as! Note
我试过,但得到了它不能用在内容管理器(是一个NSObject)的错误。 –
什么内容管理器?发布实际的错误文本,复制并粘贴它。还显示如何在应用程序代理中定义上下文 – Wain
添加图像作为说明 –