iOS 自定义模版
- 找到系统模版位置
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates/iOS/Source
image.png
- 拷贝系统模版
Cocoa Touch Class.xctemplate为Custom Cocoa Touch Class.xctemplate自定义模版 - 编辑模版内容 (我删掉了所有 OC 相关文件, 对
NSObject添加了haha属性)
image.png
-
使用
image.png
image.png
image.png









网友评论