z*******n 发帖数: 1034 | 1 1.遵循Apple's Introduction to Coding Guidelines for Cocoa
https://developer.apple.com/library/ios/documentation/Cocoa/Con
CodingGuidelines/CodingGuidelines.html
2.static variables naming
A.with internal linkage ,the first letter of the variable name should be
capitalized.
B.with no linkage,the first letter of the variable name should NOT be
capitalized.(see exception details in apple's guidelines)
3.
|
z*******n 发帖数: 1034 | 2 1.遵循Apple's Introduction to Coding Guidelines for Cocoa
https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/
CodingGuidelines/CodingGuidelines.html
2.static variables naming
A.with internal linkage ,the first letter of the variable name should be
capitalized.
// [Example:
static NSString* const CellReuseIdentifier=@"MDCellReuseIdentifier";
//-end example]
B.with no linkage,the first letter of the variable name should NOT be
capitalized.(see exception details in apple's guidelines)
// [Example:
-(void)performMakingBabies
{
static NSInteger times;
static NSInteger USAGirlsCount; //-naming exception
}
//-end example]
3. 使用[email protected]/* */ 标示you're overriding a method of a parent class.
// [Example:
@interface MITBBSMDLoginViewController : UIViewController
...
[email protected]/* */
- (void)viewDidLoad {
[super viewDidLoad];
}
...
//-end example]
4.
|
z*******n 发帖数: 1034 | 3 工具集制作征集
0.希望今年能够开始
1.在某个条件符合情况下开源,比如18个月没有更新
2.后端能够在自由地区支持两家云产品,在中华人民共和国皇帝统治地区支持两家云产品
先想到这些
【在 z*******n 的大作中提到】 : 1.遵循Apple's Introduction to Coding Guidelines for Cocoa : https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/ : CodingGuidelines/CodingGuidelines.html : 2.static variables naming : A.with internal linkage ,the first letter of the variable name should be : capitalized. : // [Example: : : static NSString* const CellReuseIdentifier=@"MDCellReuseIdentifier"; :
|
z*******n 发帖数: 1034 | 4 工具集制作征集
0.希望今年能够开始
1.在某个条件符合情况下开源,比如18个月没有更新
2.后端能够在自由地区支持两家云产品,在中华人民共和国皇帝统治地区支持两家云产品
先想到这些
【在 z*******n 的大作中提到】 : 1.遵循Apple's Introduction to Coding Guidelines for Cocoa : https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/ : CodingGuidelines/CodingGuidelines.html : 2.static variables naming : A.with internal linkage ,the first letter of the variable name should be : capitalized. : // [Example: : : static NSString* const CellReuseIdentifier=@"MDCellReuseIdentifier"; :
|