[英]How to change the tab bar background image to transparent image in ios sdk
How to change tab bar background transparent
image? 如何更改标签栏背景
transparent
图像? I am using ios sdk 6.1
, i want to change application tab bar with transparent
image. 我正在使用
ios sdk 6.1
,我想更改带有transparent
图像的应用程序选项卡栏。
是的,您可以轻松地更改“标签栏背景图片”,只需遵循以下代码即可...
[yourTabBarOutlet setBackgroundImage:[UIImage imageNamed:@"tabBack.png"]];
The easiest way to make a tab bar transparent is by setting the tab bar background image to a transparent image in the interface builder. 使标签栏透明的最简单方法是在界面构建器中将标签栏背景图像设置为透明图像。 You can get a transparent png image whose height and width is equal to the tab bar's from the net.
您可以从网上获得一个透明的png图像,其高度和宽度等于标签栏的高度。
尝试这个
[yourTabBarOutlet setBackgroundImage:[UIImage imageNamed:@"tabBack.png"]];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.