Core Data:Receiver type ‘NSManagedObjectContext’ for class is a forward declaration

在使用core Data时出现如题 错误,已在项目中加入了Coredata.framework,最终在stackoverflow上找到答案,原来要在App_Prefix.pch 中加入

#import <CoreData/CoreData.h>

问题解决!


http://stackoverflow.com/questions/2032818/adding-core-data-to-existing-iphone-project
posted on 2012-04-27 01:25  老Zhan  阅读(3093)  评论(0编辑  收藏  举报