iOS UINavigationController导航条背景透明
来源:互联网 发布:java环境变量配置失败 编辑:程序博客网 时间:2024/05/06 17:11
//方法一
- (void)setCleanNavtion {
//自定义背景
[self.navigationController.navigationBarsetBackgroundImage:[UIImagenew] forBarMetrics:UIBarMetricsDefault];
//消除阴影
self.navigationController.navigationBar.shadowImage = [UIImage new];
}
//方法二
- (void)setNavtion {
self.navigationController.navigationBar.translucent=YES;
UIColor *color=[UIColorclearColor];
CGRect rect =CGRectMake(0,0,self.view.frame.size.width,64);
UIGraphicsBeginImageContext(rect.size);
CGContextRef context =UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context, [colorCGColor]);
CGContextFillRect(context, rect);
UIImage *image =UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[self.navigationController.navigationBarsetBackgroundImage:imageforBarMetrics:(UIBarMetricsDefault)];
self.navigationController.navigationBar.clipsToBounds=YES;
}
- iOS UINavigationController导航条背景透明
- iOS 导航条背景透明
- iOS UINavigationController 修改导航条背景
- iOS 去掉UINavigationController(导航控制器)去除底部黑线、改背景颜色或者改为全透明
- UINavigationController隐藏导航条
- iOS 开发导航条的透明设置
- iOS 设置NavgationBar导航条为透明
- iOS导航条透明的办法
- IOS系列——导航条UINavigationController的简单功能
- 自定义UINavigationController导航栏背景
- ios学习:UINavigationController导航
- ios学习:UINavigationController导航
- 关于UINavigationController配置导航条
- 透明导航条
- 导航条透明
- iOS基础控件-导航栏控制器UINavigationController的UINavigationBar导航条
- ios设置导航条透明的两句代码
- iOS UINavigationController修改导航栏标题、按钮文字以及背景的颜色
- jQuery EasyUI 表单 - 创建树形下拉框
- 美国指责俄罗斯是电邮黑客幕后推手 俄方回应
- poj 2342(树型dp)
- 线程安全性——从StringBuffer和StringBuilder的区别说起
- [LeetCode]Rotate Image
- iOS UINavigationController导航条背景透明
- Python_正则表达式
- 深度学习中的数学与技巧(3):从Bayesian角度浅析Batch Normalization
- 递归n次幂
- 页面加载时遮罩效果
- support-v4拆分
- 上传App Store时报错 ERROR ITMS-90167: "No .app bundles found in the package"
- LeetCode171 Excel Sheet Column Number
- python中文件写入TXT