我使用 CGRectMake 增加了标签栏的高度,我的问题是:我可以增加阴影(选中时出现在标签栏项目上)的高度吗?如何 ?
问问题
1712 次
2 回答
1
对于您的问题,即使我以前没有尝试过,但我认为这是可能的,从这个参考链接http://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBar_Class/UITabBar_Class.pdf,请看在 shadowImage 讨论
Discussion
The default value is nil, which corresponds to the default shadow image. When non-nil, this property
represents a custom shadow image to show instead of the default. For a custom shadow image to be shown,
a custom background image must also be set using the backgroundImage (page 5) property. If the default
background image is used, then the defaultshadow image will be used regardless of the value of this property
更新:谢谢你Muhannad Dasoqie
,自己发现这个:)
[self.tabbarController.tabBar setSelectionIndicatorImage:[UIImage imageNamed:@"Selected_Tab_Shadow.png"]];
于 2012-11-11T12:25:35.297 回答
1
于 2012-11-11T12:29:54.580 回答