iOS 文件内代码组织
作者:
ZhangCc_ | 来源:发表于
2017-04-12 15:47 被阅读23次
@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 文件内代码组织
本文链接:https://www.haomeiwen.com/subject/pwymattx.html
网友评论