gpt4 book ai didi

iOS 导航栏项目图像大小

转载 作者:IT王子 更新时间:2023-10-29 07:38:32 27 4
gpt4 key购买 nike

我想自定义我的 NavigationBar 按钮并使用我自己的图像。

问题是尺寸应该是多少?

我发现按钮大小应该是 40*40,所以视网膜图像应该是 80*80?

最佳答案

这些是 documentation 的尺寸现在推荐自定义图标。

enter image description here

  • @2:50 x 50
  • @3:75 x 75

创建两个具有上述像素大小的图像,然后将它们添加到 Assets.xcassets 文件中的新图像集中。 (显然不再需要 @1 大小。)

enter image description here

或者,您可以使用通用矢量图像 (pdf)(参见 herehere)。这是我最近的偏好。

相关回答

关于iOS 导航栏项目图像大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22607674/

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