美文网首页
导航栏设置成透明

导航栏设置成透明

作者: 天亮説晚安 | 来源:发表于2016-01-26 15:20 被阅读1140次
//设置导航模拟全透明导航[self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"transparent.png"] forBarMetrics:UIBarMetricsDefault];
self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
self.navigationController.navigationBar.translucent = YES;
//去掉导航下面的一条白线
self.navigationController.navigationBar.clipsToBounds = YES;
self.automaticallyAdjustsScrollViewInsets = NO;
//修改navgationBar的字体的颜色
[self.navigationController.navigationBar setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor], NSForegroundColorAttributeName,nil]];

相关文章

网友评论

      本文标题:导航栏设置成透明

      本文链接:https://www.haomeiwen.com/subject/vwsdkttx.html