【问题标题】:Regarding Tab Bar关于标签栏
【发布时间】:2011-05-05 08:19:31
【问题描述】:

如何使 UITabBar 透明。是否可以? 如果是,请帮忙。 感谢您的合作。

【问题讨论】:

标签: iphone ios4 uitabbar


【解决方案1】:

这是答案...

@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

是的,这是可能的!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-02
    • 1970-01-01
    • 2019-02-15
    • 1970-01-01
    • 1970-01-01
    • 2017-02-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多