gpt4 book ai didi

ios - 当我渲染印地语字体时,UICollectionView 滚动滞后

转载 作者:行者123 更新时间:2023-11-30 12:33:02 25 4
gpt4 key购买 nike

我在 Collection View 单元格中使用印地语字体,几乎有 15 个单元格加载到 Collection View 中

滚动时它会滞后,当我使用英语时,它滚动平滑,但是当我将语言更改为印地语时,它开始滚动时滞后

有什么办法可以解决这个问题吗?字体有字体缓存选项吗?有什么方法可以使用 CoreText 渲染来改进这一点吗?

最佳答案

我建议阅读this文章。它有一套全面的针对 UITableViewsUICollectionViews

的滚动优化实践

UPD

就你而言,我会研究TextKit documentation :

Text views, created from the UITextView class, are meant to display large amounts of text. Underlying UITextView is a powerful layout engine called Text Kit. If you need to customize the layout process or you need to intervene in that behavior, you can use Text Kit.

希望这有帮助。

关于ios - 当我渲染印地语字体时,UICollectionView 滚动滞后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43230238/

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