子类NsfetchedResultScontroller
我正在尝试使用此RichfetchedResultScontroller
,这是nsfetchedResultScontroller
的子类博客文章。在使用此子类之前,我的代码库大量使用对象(at:)
。
现在我有Xcode给我这些错误:
类型“ nsfetchrequestresult'的价值没有成员'RelationsentityProperty'
我像这样编写的代码
let randomEntity = fetchedResultsController.object(at: indexPath).relationshipEntity
,因此这些是错误所显示的。
我试图在richfetchedResultScontroller
的子类中做到这一点noreferrer“>在这里这无济于事:
public override func object(at indexPath: IndexPath) -> NSFetchRequestResult {
super.object(at: indexPath)
}
有什么想法吗?
I'm trying to use this RichFetchedResultsController
, a subclass of NSFetchedResultsController
from this blog post. Prior to using this subclass, my codebase have a heavy use of object(at:)
.
Now I have Xcode giving me these errors:
value of type 'NSFetchRequestResult' has no member 'RelationshipEntityProperty'
I have code written like this
let randomEntity = fetchedResultsController.object(at: indexPath).relationshipEntity
So these are where the errors are showing.
I tried to do this in the subclass of RichFetchedResultsController
taken from here and it didn't help:
public override func object(at indexPath: IndexPath) -> NSFetchRequestResult {
super.object(at: indexPath)
}
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论