navigationBar translucent
来源:互联网 发布:一个java项目组多少人 编辑:程序博客网 时间:2024/04/28 16:09
A Boolean value indicating whether the navigation bar is translucent (YES) or not (NO).
The default value is YES. If the navigation bar has a custom background image, the default is YES if any pixel of the image has an alpha value of less than 1.0, and NO otherwise.If you set this property to YES on a navigation bar with an opaque custom background image, the navigation bar will apply a system opacity less than 1.0 to the image.
If you set this property to NO on a navigation bar with a translucent custom background image, the navigation bar provides an opaque background for the image using black if the navigation bar has UIBarStyleBlack style, white if the navigation bar has UIBarStyleDefault, or the navigation bar’s barTintColor if a custom value is defined.
解释:
决定导航栏是否是半透明的;
默认是YES,如果设置成YES ,放了一副不透明的图,那么效果是自动会把这个图弄成半透明;
如果设置成NO,放了一副半透明的图,
如果barstyle是UIBarStyleBlack,效果是半透明的图自动加上黑色背景
如果barstyle是UIBarStyleDefault,效果是半透明的图自动加上白色背景
如果设置了barTintColor,效果是半透明的图自动加上barTintColor的背景
0 0
- navigationBar translucent
- navigationBar translucent
- navigationBar.translucent
- iOS navigationBar translucent属性
- navigationBar.translucent问题
- 探究navigationBar的translucent属性
- iOS开发 - navigationBar背景图默认的Translucent
- self.navigationController.navigationBar.translucent = NO
- self.navigationController.navigationBar.translucent = NO
- navigationBar的透明度translucent、layout的影响
- //设置导航为不透明 self.navigationController.navigationBar.translucent = NO;
- uicollectionviewcell automatically down -32 when self.navigationcontroller.navigationbar.translucent
- iOS NavigationBar 导航栏背景颜色和避免因为设置属性translucent引起的frame改变问题
- navigationBar
- Navigationbar
- NavigationBar
- SwingX: Translucent Panels 101
- SetWallpaper, Translucent和TranslucentBlur
- GPUImage
- [LeetCode]Compare Version Numbers
- 交叉编译glibc
- SAP接口编程-RFC系列01 : RFC Hello World
- 设计模式六大原则(2):里氏替换原则
- navigationBar translucent
- 程序员面试必备规程
- hosname相关函数
- jQuery中的text()、html()和val()以及innerText、innerHTML和value
- easyui tabs中打开新的tabs关闭当前tabs
- Chrome扩展开发指南(转载)
- js获取select标签选中的值
- 上午所学(jvm内存分配和shell排序算法的深入理解)
- 毕加索加载圆形图片