English 中文(简体)
Custom template Logo and description in iPhone Application Templates
原标题:

I am trying to create a custom "Application template".

I tried to learn, "How to create template?" from the sample templates of "Cocos2d iPhone Game development".

The problems that I am facing are as follows.

  • Cocos2d custom application templates have logo - "create new project" screen. (I don t know how to place the default logo of the Application template: each template has different logo, like utility application, navigation based application, window based application etc.)

  • Each application template has description at bottom in "create new project" (Like, navigation-based application will have description at the bottom.) My problem is from where to put this description regarding the application template?

最佳回答

If you locate the template in /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates then Show Package Contents on the .xcodeproj file you will see it contains a TemplateIcon.icns. If you add/modify this file then it will appear in your project templates.

Also, with the description, again if you do the Show Package Contents on the .xcodeproj file you will see a file called TemplateInfo.plist. It contains some code that looks like this:

<?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>
问题回答

暂无回答




相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签