且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

滚动时将部分插入 UICollectionView 时的性能问题

更新时间:2023-02-05 11:38:55

在您的图像附件的调用树中有很多未解析的符号.您可以尝试在仅包含 MonthView 应用程序的那些调用树函数之一中缩小性能问题的范围.

There are quite a few unresolved symbols in the call tree of your image attachment. You could try to narrow down the performance problem in one of those call tree functions that consists of only the MonthView app.

尝试检查 Hide System Libraries 并使用 Debug 作为构建配置,这样您就可以观察这些符号并导航到您应用中的特定代码.

Try to check Hide System Libraries and use Debug as a build configuration, so you can observe those symbols and navigate to a specific code within your app.

一旦您清楚您的集合视图数据源或委托不会导致 UICollectionView 框架级别的性能问题,那么您就可以努力寻找一种方法来最小化此类集合查看部分更新.

Once you are clear that your collection view data source or delegate doesn't contribute to the performance issues at the UICollectionView framework level, then you could spend your effort to find a way to minimize such collection view section updates.

也许您的单元格自动布局配置非常复杂,您可以简化它吗?

Perhaps your cell auto layout configuration is quite complex, and you can probably simplify it?

尽管如果不实际查看您的集合视图单元格所具有的内容,则很难理解.

Although it's hard to understand without actually looking at what your collection view cell is having.