【问题标题】:UIBarButtonItem image appears pixelatedUIBarButtonItem 图像出现像素化
【发布时间】:2015-05-07 23:40:55
【问题描述】:

在我的 IOS 应用程序中,我试图在 UIBarButtonItems 上合并图像。我在 IconFinder 上找到了一些图标,但是当我使用 Storyboard 指定图像时它们出现像素化(我导出了 22x22 像素的 png)。

它在情节提要中看起来很好,但在我的设备/模拟器中像素化:

如何确保 UIBarButtonItem 图像没有像素化?我读过它们应该是 22x22。

【问题讨论】:

    标签: ios image uibarbuttonitem


    【解决方案1】:

    它们应该是 22 x 22 。您正在处理像素。

    如果您要针对 iPhone 6 Plus 进行优化,您需要一个 44 x 44 的@2x 图像以及一个 66 x 66 的@3x 图像。

    Here's a helpful link about the difference between points and pixels

    【讨论】:

    • 感谢您的帮助。像素转换的意义何在?
    • 我添加了一个链接,记录您所询问的内容。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-03-26
    • 1970-01-01
    • 1970-01-01
    • 2012-02-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多