【发布时间】:2013-05-03 15:21:14
【问题描述】:
我在 iPad 3 上使用 UICollectionView 来显示使用 CorePlot 的 BarChart 仪表板。我有大约 3 页的 6 条形图。
当用户滚动 UICollectionView 时会有一些滞后。
我已将 BarChart 的主题从 kCPTDarkGradientTheme 更改为 kCPTPlainBlackTheme,滚动效果更好,但仍然有点滞后。
从仪器看来,在来自 CPTLayer 的 -(void)recursivelyRenderInContext:(CGContextRef)context 中似乎需要一些时间(160 毫秒)。
知道如何改进它吗? 问候,
塞巴斯蒂安。
【问题讨论】:
-
你能显示你的 -(NSNumber *)numberForPlot:(CPTPlot *)plot field:(NSUInteger)fieldEnum recordIndex:(NSUInteger)index 吗?
标签: ios performance uiscrollview core-plot uicollectionview