【发布时间】:2011-05-05 08:19:31
【问题描述】:
如何使 UITabBar 透明。是否可以? 如果是,请帮忙。 感谢您的合作。
【问题讨论】:
如何使 UITabBar 透明。是否可以? 如果是,请帮忙。 感谢您的合作。
【问题讨论】:
这是答案...
@interface UITabBarController (private)
- (UITabBar *)tabBar;
@end
@implementation CustomUITabBarController
- (void)viewDidLoad {
[super viewDidLoad];
CGRect frame = CGRectMake(0.0, 0.0, self.view.bounds.size.width, 48);
UIView *v = [[UIView alloc] initWithFrame:frame];
[v setBackgroundColor:kMainColor];
[v setAlpha:0.5];
[[self tabBar] addSubview:v];
[v release];
}
@end
是的,这是可能的!
【讨论】: