将 NSFetchedResultsController 作为属性传递给表视图
我有一个表格视图,其中包含相当大的供应商列表。选择后,每行都会打开另一个表格视图,其中包含所述供应商的员工列表。
我想知道将 NSFetchedResultsController 作为属性传递给第二个表视图是否被认为是不好的做法。我应该只传递必要的信息来在第二个视图中创建 NSFetchedResultsController 吗?
我想传递 NSFetchedResultsController 的原因是为了可重用性。
谢谢
I have a table view with a fairly big list of suppliers. On selection, each row opens another table view with a list of employees for said supplier.
I was wondering if it was considered bad practice to pass on an NSFetchedResultsController as property to a second table view. Should I just pass in the necessary information to create the NSFetchedResultsController in the second view?
The reason I would like to pass on an NSFetchedResultsController is for reusability.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论