2
1.3
属性
.................................................................................................................................................................
6
1.4
方法
.................................................................................................................................................................
6
1.5
通知和异常
....................................................................................................................................................
7
1.6
资源命名
.........................................................................................................................................................
7
1.7
命名建议
.........................................................................................................................................................
7
1.8
Constant 命名规范
..........................................................................................................................................
7
二.格式规范
....................................................................................................................................................................
8
2.0 编码代码的块基本规范
...................................................................................................................................
8
2.1
空格
...................................................................................................................................................................
9
2.1.1 属性相关
.......................................................................................................................................................
9
2.1.2 方法相关
.......................................................................................................................................................
9
2.1.3 语句
...............................................................................................................................................................
9
2.1.4 容器
...............................................................................................................................................................
9
2.2
空行
................................................................................................................................................................
10
2.4 折行
................................................................................................................................................................
10
2.5 大括号{}
.........................................................................................................................................................
10
三.控制规范
..................................................................................................................................................................
12
3.1
switch
.............................................................................................................................................................
12
3.2
if-else
..............................................................................................................................................................
12
四.内存管理规范
..........................................................................................................................................................
14
4.1 注释方式
............................................................................................................................................................
14
4.3 延迟调用范围
....................................................................................................................................................
15
4.4 类型设计范围
....................................................................................................................................................
15
五.代码组织规范
..........................................................................................................................................................
16