我有一个由 NSFetchedResultsController
提供的 UITableViewController
。
一切正常,直到我添加
if (self.fetchedResultsController != nil)
{
return self.fetchedResultsController;
}
回到我的开始
-(NSFetchedResultsController *)fetchedResultsController {
方法。我得到的错误是:
Program received signal: “EXC_BAD_ACCESS”.
知道为什么会这样吗?我声明
@property (nonatomic, retain) NSFetchedResultsController *fetchedResultsController;
在 .h 文件和
@synthesize fetchedResultsController
在实现文件中。
谢谢~
最佳答案
是否设置递归调用,使用 self.fetchedResultsController 调用 fetchedResultsController 方法?
关于iphone - NSFetchedResultsController 和 BAD_ACCESS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3593161/