修改tabbar大小并隐藏tabbar的横线和导航的横线
// 修改tabbar大小
CGRect frame = self.tabBar.frame;
frame.size.height = 55;
frame.origin.y = self.view.frame.size.height - frame.size.height;
self.tabBar.frame = frame;
self.tabBar.backgroundColor = [UIColor whiteColor];
self.tabBar.barStyle = UIBarStyleDefault;
//此处需要设置barStyle,否则颜色会分成上下两层
// 隐藏tabbar的横线
[self.tabBar setBackgroundImage:[UIImage new]];
[self.tabBar setShadowImage:[UIImage new]];
// 隐藏导航的横线
[self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
[self.navigationController.navigationBar setShadowImage:[UIImage new]];
// 导航透明设置
[self.navigationController.navigationBar setTranslucent:NO];
posted on 2017-05-08 15:31 Hibiscus_MO 阅读(335) 评论(0) 编辑 收藏 举报