简体   繁体   English

UITabBar背景图像和栏项目图标的大小和位置在iOS 7中很奇怪

[英]UITabBar Background image and bar item icon's size and position is strange in iOS 7

I embedded UITabBarViewController into UIViewController in storyboard and i customise the background of tab bar and icon of tab bar item. 我将UITabBarViewController嵌入情节提要中的UIViewController中,并自定义标签栏的背景和标签栏项目的图标。 But they looked strange.Tab bar's height is doubled and icon size of tab bar item is a little big. 但是它们看起来很奇怪。选项卡栏的高度增加了一倍,选项卡栏项的图标大小有点大。 I use iPhone 5c with OS iOS 7 to test. 我将iPhone 5c与OS iOS 7一起进行测试。 Background image of tab bar is 640*98 px.Icon of tab bar item is 50*50 px. 标签栏的背景图片为640 * 98像素。标签栏项目的图标为50 * 50像素。 Here is the reference image. 这是参考图像。 在此处输入图片说明

I solved the problem. 我解决了问题。 Rename image with @2x. 用@ 2x重命名图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM