如何使 tabBarItem Image 看起来很小,同时不让它像素化?

How to make the tabBarItem Image appear small and at the same time not let it get pixelated?

我正在尝试为 tabBarItem 图像找到理想的分辨率。 我想保持图像小而不让它像素化。我尝试降低分辨率,但图像变得像素化。 我试过 60x60 的分辨率。 tabBarItem 图像很清晰,但图像占据了大部分 tabBar。 我尝试了 30x30 的分辨率。渲染的图像尺寸理想,但图像像素化。
我该怎么做才能在 tabBarItem 上实现小图像渲染并同时阻止它像素化?

您应该使用与您在 tabBarItem 中使用的相同大小的图像。您可以参考 Apple human interface guidelines 了解您应该使用的不同图像尺寸。

希望这会有所帮助:)