0

在此处输入图像描述

        UIImage *TabBarFooterImage = [UIImage imageNamed:@"b_bar"];
        CGRect viewFrame = self.tabBar.frame;
        viewFrame.origin.y +=4; //the correct position of the tab bar
        viewFrame.size.height = 45; //the correct height
        self.tabBar.frame = viewFrame;
        [self.tabBar setBackgroundImage:TabBarFooterImage];

我已经为标签栏设置了一个自定义高度。标签栏上有一条白线。我该如何删除它?

4

1 回答 1

1

这将对您有所帮助。

imgTab = [[UIImageView alloc]initWithFrame:CGRectMake(0,0,320.0,50)];
imgTab.image=[UIImage imageNamed:@"bottambar.png"];
tabBarController.tabBar.tag=10;
[tabBarController.tabBar addSubview:imgTab];
于 2012-10-09T09:13:57.580 回答