iPhone标签栏项目图像分辨率?
时间:2020-03-06 14:54:24 来源:igfitidea点击:
标签栏项目的图像分辨率是多少?
另外,请提供有关该选项卡项目图像的其他有用信息。
提前致谢。
解决方案
检查SDK文档中的" UITabBarItem类参考"
该文档说,标签栏图像通常为30x30,但是我发现设置图像的最佳尺寸为48x32像素。此大小仍会渲染,并为我们提供更多的空间。
图像是具有透明性的PNG,仅使用蒙版。 UI会在未选择时将遮罩呈现为灰色,而在选择时会呈现蓝色/铬色。
http://developer.apple.com/iphone/library/documentation/UserExperience/Conceptual/MobileHIG/IconsImages/IconsImages.html
When possible, you should use the system-provided buttons and icons in navigation bars, toolbars, and tab bars... For a complete list of standard buttons and icons, and guidelines on how to use them, see “System-Provided Buttons and Icons.” Of course, not every task your application performs is a standard one. If your application supports custom tasks users need to perform frequently, you need to create custom icons that represent these tasks in your toolbar or navigation bar. Similarly, if your application displays a tab bar that allows users to switch among custom application modes or custom subsets of data, you need to design tab bar icons that clearly describe these modes or subsets. This section gives you some guidance on how to design icons that work well in navigation bars, toolbars, and tab bars. Before you create the art for your icon, you need to spend some time thinking about what it should convey. As you consider designs, aim for an icon that is: Simple and streamlined. Too many details can make an icon appear sloppy or indecipherable. Not easily mistaken for one of the system-provided icons. Users should be able to distinguish your custom icon from the standard icons at a glance. Readily understood and widely acceptable. Strive to create a symbol that most users will interpret correctly and that no users will find offensive. After you’ve decided on the appearance of your icon, follow these guidelines as you create it: Use the PNG format. Use pure white with appropriate alpha. Do not include a drop shadow. Use anti-aliasing. If you decide to add a bevel, be sure that it is 90° (to help you do this, imagine a light source positioned at the top of the icon). For toolbar and navigation bar icons, create an icon that measures about 20 x 20 pixels. For tab bar icons, create an icon that measures about 30 x 30 pixels...