ios - TabBar 图像的大小应该是多少?

标签 ios objective-c uitabbarcontroller uitabbar uitabbaritem

我有一个大小为 100 的 tabBar 的图标。

我检查了 at Apple's Human Interface Guidelines of 2013它说图像尺寸应该是 30x30/60x60.

但由于标签栏 Controller 的高度为 50,我将图像的大小保持在 50x50

现在,当我运行项目时,我看到下面的丑陋设计:

enter image description here

知道我应该使用什么尺寸的图片才能使设计完美吗?

注意:我也不是在写文字(例如主页、搜索等)。选项卡按钮的文本在图像本身中。

最佳答案

根据Apple Human Interface Guidelines :

@1x:大约 25 x 25(最大:48 x 32)

@2x:大约 50 x 50(最大:96 x 64)

@3x:大约 75 x 75(最大:144 x 96)

关于ios - TabBar 图像的大小应该是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18068597/

相关文章:

ios - 在 swift 中显示更多按钮时取消在 tableview 单元格上向左滑动

ios - GMSThreadException' 原因 : 'The API method must be called from the main thread'

ios - UITabBarController tabBar setItemWidth 不起作用

ios - 使用 Assets 时如何在 Xcode 5 中关闭图标光泽效果?

ios - 获取下载进度Google云端硬盘

ios - segue 和 NavigationController 导航有什么问题

ios - 将 UIImage 从 iPhone 传递到 Apple Watch 会导致 watch 无响应

ios - 用文本填充单元格中的标签

ios - 从 UIViewController 过渡到 TabBarViewController

ios - 同时切换选项卡并重置 Nav 的 View Controller - Swift iOS