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 に答える