// 子类化UITabBarViewController,我这里以修改tabBar高度为例,重写viewWillLayoutSubviews方法
#import "WZBTabBarViewController.h"
@interfaceWZBTabBarViewController ()
@end
@implementationWZBTabBarViewController
- (void)viewWillLayoutSubviews {
CGRect tabFrame =self.tabBar.frame;
tabFrame.size.height =100;
tabFrame.origin.y =self.view.frame.size.height -100;
self.tabBar.frame = tabFrame;
}
@end
网友评论