【问题标题】:Custom template Logo and description in iPhone Application TemplatesiPhone 应用程序模板中的自定义模板徽标和说明
【发布时间】:2011-01-16 03:26:19
【问题描述】:
我正在尝试创建自定义“应用程序模板”。
我尝试学习“如何创建模板?”来自《Cocos2d iPhone 游戏开发》示例模板。
我面临的问题如下。
【问题讨论】:
标签:
iphone
objective-c
xcode
project-template
xcode-template
【解决方案1】:
如果您在 /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates 中找到模板,然后在 .xcodeproj 文件中显示包内容,您将看到它包含一个 TemplateIcon.icns。如果您添加/修改此文件,那么它将出现在您的项目模板中。
此外,如果您在 .xcodeproj 文件上执行 Show Package Contents,您将再次看到一个名为 TemplateInfo.plist 的文件。它包含一些看起来像这样的代码:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
<string>This is the description for the template</string>
</dict>
</plist>