[Swift] 自定义模版

2022-07-10  本文已影响0人  巨馍蘸酱

iOS 自定义模版

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


    image.png
    image.png
    image.png
上一篇 下一篇

猜你喜欢

热点阅读