1. 程式人生 > >IOS xcode9.2 修改系統模組 以及個人模板風格

IOS xcode9.2 修改系統模組 以及個人模板風格

1. xcode9.2 系統模板所在的路徑:

      1)/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/

     2)File Templates -> Source -> Cocoa Touch Class.xctemplate

     3) 找到檔案NSObjectObjective-c, UIViewObjective-c,UIViewControllerObjective-c, UITableViewCellObjective-c,UICollectionCellObjective-c

           資料夾內的___FILEBASENAME___.h,.m就是要修改的模板檔案.

2. 巨集意義

    ___FILENAME___            檔名包括字尾

    ___PROJECTNAME___    工程名

    ___FULLUSERNAME___  使用者的名字

    ___DATE___                 當前時間

    ___COPYRIGHT___     版權

3.  個人模板 github地址

   https://github.com/a1255197195g/XCODE_SYSTEM_TEMPLATE/tree/master/Desktop/Cocoa%20Touch%20Class.xctemplate