-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathprotocol.yml
42 lines (37 loc) · 1.32 KB
/
protocol.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# 建议首先阅读 YAML 格式简介: http://zh.wikipedia.org/zh-cn/YAML
# 更多信息见: https://gist.github.com/larrytin/f3a0cad456aaeb08282a
## View
# 定义通用锚点标记, 以供参考引用
--- # UIViewController 的控制项
viewOptions: &viewOptions
navBar: true # true:显示 false:隐藏
toolBar: false # true:显示 false:隐藏
tabBar: false # true:显示 false:隐藏
statusBar: true # true:显示 false:隐藏
statusBarStyle: *UIStatusBarStyle
redirect: true # 是否强制跳转
deviceOrientation: *UIDeviceOrientation
attemptRotationToDeviceOrientation: false
autorotate: true
supportedInterfaceOrientations: *UIInterfaceOrientationMask
preferredInterfaceOrientationForPresentation: *UIInterfaceOrientation
statusBarOrientation: *UIInterfaceOrientation
transition: *UIViewControllerTransitioningDelegate
modalTransitionStyle: *UIModalTransitionStyle
modalPresentationStyle: *UIModalPresentationStyle
--- # 新建 UIViewController 时的控制项
createViewOptions: &createViewOptions
edge: *UIRectEdge
hidesBottomBarWhenPushed: false
display: push # {push, present, presentWithoutNav}
<<: *viewOptions
...
# topic: up
-- # 返回上一层界面
_options:
viewOptions: *viewOptions
# topic: opt
-- # 修改当前的 UIViewController 选项
_options:
viewOptions: *viewOptions
...