You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,12 +56,12 @@ Here are some of the documents from Apple that informed the style guide. If some
56
56
57
57
US English should be used.
58
58
59
-
Preferred:
59
+
**Preferred:**
60
60
```objc
61
61
UIColor *myColor = [UIColor whiteColor];
62
62
```
63
63
64
-
Not Preferred:
64
+
**Not Preferred:**
65
65
```objc
66
66
UIColor *myColour = [UIColor whiteColor];
67
67
```
@@ -116,7 +116,7 @@ Use `#pragma mark -` to categorize methods in functional groupings and protocol/
116
116
* Indent using 2 spaces (this conserves space in print and makes line wrapping less likely). Never indent with tabs. Be sure to set this preference in Xcode.
117
117
* Method braces and other braces (`if`/`else`/`switch`/`while` etc.) always open on the same line as the statement but close on a new line.
118
118
119
-
Preferred:
119
+
**Preferred:**
120
120
```objc
121
121
if (user.isHappy) {
122
122
//Do something
@@ -125,7 +125,7 @@ if (user.isHappy) {
125
125
}
126
126
```
127
127
128
-
Not Preferred:
128
+
**Not Preferred:**
129
129
```objc
130
130
if (user.isHappy)
131
131
{
@@ -140,7 +140,7 @@ else {
140
140
* Prefer using auto-synthesis. But if necessary, `@synthesize` and `@dynamic` should each be declared on new lines in the implementation.
141
141
* Colon-aligning method invocation should often be avoided. There are cases where a method signature may have >= 3 colons and colon-aligning makes the code more readable. Please do **NOT** however colon align methods containing blocks because Xcode's indenting makes it illegible.
142
142
143
-
Preferred:
143
+
**Preferred:**
144
144
145
145
```objc
146
146
// blocks are easily readable
@@ -151,7 +151,7 @@ Preferred:
151
151
}];
152
152
```
153
153
154
-
Not Preferred:
154
+
**Not Preferred:**
155
155
156
156
```objc
157
157
// colon-aligning makes the block indentation hard to read
0 commit comments