- (NSData *)returnSomething
{
// uses 4 spaces for indentation
return data;
}
- (NSData *)returnSomething
{
// uses 1 tab for indentation
return data;
}
Line Length over 80 characters
Line length is within 80 characters.
/* width is within 80 characters */
Line length is within 100 characters.
/* width is within 100 characters */
Line length is within 120 characters.
/* width is within 120 characters */
Line length is within 150 characters.
/* width is within 150 characters */
Brace Placement (Control Structure)
Curlybrace with one space
if (someInstance != nil ) {
// do stuff
}
while (isTrue) {
// do stuff
}
switch (type) {
// do stuff
}
if (someInstance != nil )
{
// do stuff
}
while (isTrue)
{
// do stuff
}
switch (type)
{
// do stuff
}
if (someInstance != nil ){
// do stuff
}
while (isTrue){
// do stuff
}
switch (type){
// do stuff
}
Brace Placement (Methods)
- (void)clearAllDataWithCompletionBlock:(void (^)(NSString *))block
{
//do stuff
}
- (void)clearAllDataWithCompletionBlock:(void (^)(NSString *))block {
//do stuff
}