Xcode-更改项目模板 [英] Xcode - change project templates

查看:96
本文介绍了Xcode-更改项目模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我可以为单个文件添加新模板,但是我希望Xcode在设置新项目时使用这些文件(最值得注意的是Controller和Delegate .h和.m文件).我该怎么办?

So I can add new templates for single files, but I want Xcode to uses these files when setting up the new project (most noticeably the Controller and Delegate .h and .m files). How do I do that?

推荐答案

除了找到的各个类的模板之外,还有各种项目类型的模板.如果只想替换项目中已经添加的单个类文件,则只需替换每个项目模板文件中的文件(只要名称相同)即可.您将需要将模板文件复制到要更改其的每个项目模板中.另一种方法是使用所需的任何默认文件制作自己的项目模板.

In addition to the templates for individual classes that you found, there are also templates for the various project types. If you just want to replace a single class file that is already being added in the projects you can just replace the file in each of the project template files (as long as the names are the same). You will need to copy the template files into each project template that you want to change it in. The other option is to make your own project templates with whatever default files you want.

这篇关于Xcode-更改项目模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆