iOS 文件内代码组织

@implementation XXXViewController

#pragma mark - Init Methods

#pragma mark - Life cycle

-(void)viewDidLoad {
[super viewDidLoad];
}

#pragma mark - Event response

#pragma mark - Notifications

#pragma mark - UITableViewDelegate

#pragma mark - XXXDelegate

#pragma mark - Custom views

#pragma mark - Setter Getter Methods

#pragma mark - Public methods

#pragma mark - Private methods

@end


技巧1:修改项目专属文件模板

路径:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates/Source/Cocoa Touch Class.xctemplate

技巧2:创建Xcode类模板

路径:/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates/Source

你可能感兴趣的:(iOS 文件内代码组织)