IOS-导航栏风格
来源:互联网 发布:离线记笔记软件 编辑:程序博客网 时间:2024/06/05 03:08
导航控制器可以用几种不同的风格来显示自身。默认风格就是标准的灰色外观。目前支持三种不同的风格。
风 格
描 述
UIBarStyleDefault
默认风格;灰色背景,白色文字
UIBarStyleBlack
纯黑色背景,白色文字
UIBarStyleBlackOpaque
纯黑色背景,白色文字
UIBarStyleBlackTranslucent
透明黑色背景,白色文字
风格是通过barStyle属性来设置的。这个属性属于导航控制器,而不是视图控制器,因此在各个视图之间来回切换时,此属性可以保持一致:
self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
IOS中原文档如下:
UIBarStyle
Defines the stylistic appearance of different types of views.
typedef enum {
UIBarStyleDefault = 0,
UIBarStyleBlack = 1,
UIBarStyleBlackOpaque = 1, // Deprecated
UIBarStyleBlackTranslucent = 2, // Deprecated
} UIBarStyle;
Constants
UIBarStyleDefault
Use the default style normally associated with the given view. For example, search bars and tool bars typically use a blue gradient background.
Available in iOS 2.0 and later.
Declared in UIInterface.h.
UIBarStyleBlack
Use an opaque black style.
Available in iOS 3.0 and later.
Declared in UIInterface.h.
UIBarStyleBlackOpaque
Deprecated. Use UIBarStyleBlack instead.
Available in iOS 2.0 and later.
Declared in UIInterface.h.
UIBarStyleBlackTranslucent
Deprecated. Use UIBarStyleBlack and set the translucent property to YES instead.
Available in iOS 2.0 and later.
Declared in UIInterface.h.
- ios 导航栏风格
- IOS-导航栏风格
- iOS导航风格
- IOS-导航风格:BarButton创建
- IOS-导航风格:BarButton创建
- IOS-导航风格:BarButton创建
- iOS开发 -- 给导航栏设置统一风格(appearance)
- IOS学习 IOS-导航风格:BarButton创建
- ios之定制iOS 7中的导航栏和状态栏/颜色/风格/字体/个性自定义
- Xcode 5代码自动补全插件 iOS 7风格的导航栏按钮
- IOS导航栏颜色渐变与常用属性(最近应用比较流行的风格)
- ios 5 上如何定制导航条风格
- 使用jQuery开发iOS风格的页面导航菜单
- 仿QQ2003风格的导航栏
- IOS导航栏UINavigation
- ios 导航栏显示
- ios 导航栏设置
- iOS 导航栏
- SSL和TSL的区别【转】
- opengl在vs2010下的配置
- Homebrew基本操作命令
- ava 图片缩放 实现
- matlab以mex方式调用c代码
- IOS-导航栏风格
- Windows UI Automation经验
- iphone UI元素集
- 批量删除sql
- UIBarButtonSystemItem样式
- OpenCV 学习笔记---基本数据类型
- ajax实例1
- ZOJ 2192 T-Shirt Gumbo(DFS)
- XML文件的操作