Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
对于NSFetchedResults,Xcode没有可见的@接口_Xcode - Fatal编程技术网

对于NSFetchedResults,Xcode没有可见的@接口

对于NSFetchedResults,Xcode没有可见的@接口,xcode,Xcode,在编写核心数据应用程序时,我的Xcode出现错误。我(在youtube上)关注 在25:50的时候,我在Xcode中得到了一个错误 我的代码是: if (![[self fetchedResultsController]preformFetch:&error]) { NSLog(@"Error! %@", error); abort(); } 但我有一个错误: “NSFetchedResultsController”没有可见的@interface声明 选择器'fetch

在编写核心数据应用程序时,我的Xcode出现错误。我(在youtube上)关注

在25:50的时候,我在Xcode中得到了一个错误

我的代码是:

if (![[self fetchedResultsController]preformFetch:&error]) {
    NSLog(@"Error! %@", error);
    abort();
}
但我有一个错误:

“NSFetchedResultsController”没有可见的@interface声明 选择器'fetch'


此错误是什么意思?如何修复它?

当您在编码时修改代码日期时,可能会发生此错误


在模拟器(或手机)中,删除应用程序,并删除您创建的任何NSManagedObject子类。重新创建你的NSManagedObject子类,然后再次运行该应用程序。

好吧,几个小时后我找到了它,感觉自己像个白痴。我拼写performFetch。白痴矮子!