Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
滚动 AQGridView 时出现延迟。我使用网格视图来显示图像。屏幕上大约有20个。我发现最耗时的是 UIImage *image = [[UIImage alloc] initWithContentsOfFile:writeFilePath];大约需要 0.0015 - 0.004s。有没有办法优化网格视图?我看到应用程序也显示了如此多的图像但没有滞后..
UIImage *image = [[UIImage alloc] initWithContentsOfFile:writeFilePath];
编辑:我错了,设置图像时发生了滞后。我试过设置一些占位符 - 在这种情况下一切都很好..