最佳答案
确保您没有设置 shouldRasterize
属性; 如果是,则尝试取消设置。
来自 Apple Documentation :
shouldRasterize
A Boolean that indicates whether the layer is rendered as a bitmap before compositing.
这可能会使您的标签像素化。
希望对您有所帮助。
关于swift - UILabel 看起来有阴影像素化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43256272/