//使用 #pragma mark - 方式对类的方法进行分组
#pragma mark - private methods
- (void)samplePrivateMethod{⋯}
- (void)sampleForIf{⋯}
- (void)sampleForWhile{⋯}
- (void)sampleForSwitch{⋯}
- (void)wrongExamples{⋯}
#pragma mark - public methods
- (void)samplePublicMethodWithParam:(NSString*)sampleParam{⋯}
#pragma mark - life cycle methods
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{⋯}
- (void)viewDidLoad{⋯}
分组
最新推荐文章于 2024-04-11 09:37:43 发布