App-developed dry goods-1, code specification using OC

Source: Internet
Author: User

Code specification URL: http://www.csdn.net/article/2015-06-01/2824818-objective-c-style-guide
Https://github.com/VincentSit/NYTimes-Objective-C-Style-Guide-ZH

1, the number of lines of the method cannot be greater than 150,controller the number of file code lines cannot be greater than 800

2. #pragma mark Notes

Notes for the Controller

#pragma mark----lift cycle lifecycle---

#pragma mark----delegate view delegate---

#pragma mark----Event response events corresponding---

#pragma mark----Private methods method---

#pragma mark----getters and setters properties---

Comments for Views

#pragma the init view of the mark----initialized---

#pragma mark----delegate view delegate---

#pragma mark----Event response events corresponding---

#pragma mark----Private methods method---

#pragma mark----setters property---

#pragma mark----getters properties-

3. Code snippet for attribute comment

@property (Nullable, Nonatomic, ReadOnly) < #Class #> *< #obj #>; <##>

@property (Nullable, Nonatomic, ReadWrite) < #Class #> *< #obj #>; <##>

@property (Nullable, nonatomic, strong) < #Class #> *< #obj #>; <##>

@property (nullable, nonatomic, copy) < #Class #> *< #obj #>; <##>

@property (nullable, nonatomic, weak) < #Class #> *< #obj #>; <##>

@property (readonly, getter=is< #obj #>) BOOL < #obj #>; <##>

@property (null_resettable, nonatomic, Strong) < #Class #> *< #obj #>; <##>

@property (nonatomic) < #Class #> < #obj #>; <##>

@property (nonatomic, assign) < #Class #> < #obj #>; <##>

App-developed dry goods-1, code specification using OC

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.