Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我可以为单个文件添加新模板,但我希望 Xcode 在设置新项目时使用这些文件(最明显的是 Controller 和 Delegate .h 和 .m 文件)。我怎么做?
除了您找到的各个类的模板外,还有各种项目类型的模板。如果您只想替换已添加到项目中的单个类文件,您只需替换每个项目模板文件中的文件(只要名称相同)。您需要将模板文件复制到要更改的每个项目模板中。另一个选项是使用您想要的任何默认文件制作您自己的项目模板。