在TabBarViewController里面设置
@implementation SuerTabBarViewController
- (void)viewWillLayoutSubviews{
CGRect tabFrame = self.tabBar.frame; self.TabBar is IBOutlet of your TabBar
tabFrame.size.height = 80;//高度80可以修改
tabFrame.origin.y = self.view.frame.size.height - 80;
self.tabBar.frame = tabFrame;
}
网友评论