您的位置:首页 > 移动开发 > Objective-C

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

2014-06-11 13:08 549 查看
在使用core Data时出现如题 错误,已在项目中加入了Coredata.framework,最终在stackoverflow上找到答案,原来要在App_Prefix.pch 中加入
#import <CoreData/CoreData.h>


问题解决!

http://stackoverflow.com/questions/2032818/adding-core-data-to-existing-iphone-project[/code]
转载:http://www.cnblogs.com/mybkn/archive/2012/04/27/2472892.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐