gpt4 book ai didi

ios - TableView : Separator of cell change with different thickness when scrolling

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:30:14 25 4
gpt4 key购买 nike

这是应用程序中 UITableView 分隔符的问题,不支持 iPhone 6/6 Plus 分辨率。

问题
您有一个在 iPhone <= 5s 上运行良好的应用程序。但是在 iPhone 6 或 6 Plus(设备或模拟器)上,分隔符具有不同的厚度,并且当您滚动表格时它们会随机改变厚度,如屏幕截图所示:

enter image description here

最佳答案

原因
问题是您的应用程序不支持 iPhone 6 和 iPhone 6 Plus 的原始分辨率。因此它会按比例放大,从而导致闪烁。

解决方案
打开你的 .plist 文件并添加这个键和值

Renders with edge antialiasing: YES

这是从https://icodeios.wordpress.com/2017/05/04/first-blog-post/得到的这对我有用:)

关于ios - TableView : Separator of cell change with different thickness when scrolling,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48838530/

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