gpt4 book ai didi

ios - NSFetchedResultsController 用于在 Apple Watch 上显示记录?

转载 作者:可可西里 更新时间:2023-11-01 02:58:17 24 4
gpt4 key购买 nike

我可以在 Apple Watch 上使用 NSFetchResultController 来在表格中显示 80 到 90 条记录吗?

我正在使用 WKInterfaceTable+IGInterfaceDataTable 来使用数据源类型加载方法,因为在我看来这比使用 NSArray 简单。

NSFetchResultController 会有助于提高效率还是会变慢?

最佳答案

我发现 NSFetchResultController 在 iWatch 应用程序中根本没有用,因为 WKInterfaceTable 不支持 NSFetchResultController 在委托(delegate)中支持的单个行的编辑、更改或删除委托(delegate)方法。所以你每次都必须更新你想要显示的所有数据,所以我认为我们不应该使用它。

关于ios - NSFetchedResultsController 用于在 Apple Watch 上显示记录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29508679/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com