使用 Xcode 新建工程文件時,或默認生成一套注釋說明信息在 .h/.m 文件的頭部,說明了創建這個文件的名稱、工程名、日期、作者、公司、版權等信息
// // ___FILENAME___ // ___PROJECTNAME___ // // Created by ___FULLUSERNAME___ on ___DATE___. //___COPYRIGHT___ // ___IMPORTHEADER_cocoaTouchSubclass___ @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___ @end
如果需要自定義時,可以找到 ___FILEBASENAME___ 文件(如👆),修改內容注釋,重啟 Xcode 即可
ps:___FILEBASENAME___ 文件目錄是 應用程序,找到 Xcode ,顯示包內容,然后按目錄 Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File\ Templates/Source/Cocoa\ Touch\ Class.xctemplate/NSObjectObjective-C 找到即可。
在編輯文件時,會遇到權限讀寫更改的提示。“Could not add write permission to the file because you do not own it. Try modifying the permissions of the file in the Finder or Terminal.”
