2012-06-11 125 views

回答

4

试试这个:

CGRect viewFrame = yourTabBar.frame; 
viewFrame.size.height = 20; 
self.tabBar.frame = viewFrame; 
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)];