2

タブバーのサイズを大きくすることはできますか? プロジェクトの 1 つで、タブ バーの高さを増やす必要があります。

4

2 に答える 2

4

これを試して:

CGRect viewFrame = yourTabBar.frame;
viewFrame.size.height = 20;
self.tabBar.frame = viewFrame;
于 2012-06-11T19:13:42.490 に答える
1

また...

[self.tabBarPropertyName setFrame:CGRectMake(
    self.tabBarPropertyName.frame.origin.x,
    self.tabBarPropertyName.frame.y-(20),
    self.tabBarPropertyName.frame.size.width,
    self.tabBarPropertyName.frame.height+20)];
于 2012-06-11T20:23:05.987 に答える