官方文档:http://developer.apple.com/library/ios/#qa/qa1686/_index.html

原文地址:http://blog.csdn.net/diyagoanyhacker/article/details/6158118


图标大小问题
我们的辛辛苦苦做出来的应用程序在iPhone上的表示仅仅是一个图标,对这个图标不可以不谨慎对待,不能因为大小不对头这些小问题而失真啊什么的。
那么,你知道图标的大小和格式吗?
本文适用于iPhone,iPod Touch,iPad等各种iOS设备。

图片大小 (px)

            </td>
            <td width="25%">
                <p align="CENTER">
                    <strong><span style="font-family:'Microsoft YaHei';font-size:16px;">文件名</span></strong>
                </p>
            </td>
            <td width="25%">
                <p align="CENTER">
                    <strong><span style="font-family:'Microsoft YaHei';font-size:16px;">用途</span></strong>
                </p>
            </td>
            <td width="25%">
                <p align="CENTER">
                    <strong><span style="font-family:'Microsoft YaHei';font-size:16px;">重要程度</span></strong>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">512x512</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iTunesArtwork</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iTunes 商店中展示</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">可以没有,推荐有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">57x57</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iPhone/iPod touch上的App Store以及Home界面</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">这个真得有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">114x114</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon@2x.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iPhone 4(高分辨率)的Home 界面</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">可以没有,推荐有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">72x72</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon-72.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">兼容iPad的Home界面</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">可以没有,推荐有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">29x29</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon-Small.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Spotlight搜索以及设置界面</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">可以没有,推荐有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">50x50</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon-Small-50.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">兼容iPad的Spotlight搜索</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">如果有设置束,最好有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">58x58</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon-Small@2x.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iPhone 4(高分辨率)的Spotlight搜索和设置界面</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">如果有设置束,最好有</span>
                </p>
            </td>
        </tr>
    </tbody>
</table>
<p style="color:#333333;font-family:Arial;font-size:14px;line-height:26px;white-space:normal;background-color:#FFFFFF;">
    <span style="font-family:'Microsoft YaHei';font-size:16px;">其中第一个,也就是iTunesArtwork,必须是png格式的,但不许有后缀名。</span>
</p>
<p style="color:#333333;font-family:Arial;font-size:14px;line-height:26px;white-space:normal;background-color:#FFFFFF;">
    <span style="font-family:'Microsoft YaHei';font-size:16px;">专为iPad的应用程序</span>
</p>
<table border="1" cellspacing="0" cellpadding="4" style="color:#333333;font-family:Arial;font-size:14px;line-height:26px;width:706px;background-color:#FFFFFF;">
    <tbody>
        <tr valign="TOP">
            <td width="25%">
                <p align="CENTER">
                    <strong><span style="font-family:'Microsoft YaHei';font-size:16px;">图片大小&nbsp;</span></strong><strong><span style="font-family:'Microsoft YaHei';font-size:16px;">(px)</span></strong>
                </p>
            </td>
            <td width="25%">
                <p align="CENTER">
                    <strong><span style="font-family:'Microsoft YaHei';font-size:16px;">文件名</span></strong>
                </p>
            </td>
            <td width="25%">
                <p align="CENTER">
                    <strong><span style="font-family:'Microsoft YaHei';font-size:16px;">用途</span></strong>
                </p>
            </td>
            <td width="25%">
                <p align="CENTER">
                    <strong><span style="font-family:'Microsoft YaHei';font-size:16px;">重要程度</span></strong>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">512x512</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iTunesArtwork</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iTunes 商店中展示</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">可以没有,推荐有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">72x72</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon-72.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">App Store以及iPad上的Home界面</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">这个真得有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">29x29</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon-Small.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iPad上的设置界面</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">如果有设置束,最好有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">50x50</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon-Small-50.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">兼容iPad的Spotlight搜索</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">可以没有,推荐有</span>
                </p>
            </td>
        </tr>
    </tbody>
</table>

ItunesArtwork同上。

iPhone、iPad通用的应用程序


<table border="1" cellspacing="0" cellpadding="4" style="color:#333333;font-family:Arial;font-size:14px;line-height:26px;width:706px;background-color:#FFFFFF;">
    <tbody>
        <tr valign="TOP">
            <td width="25%">
                <p align="CENTER">
                    <strong><span style="font-family:'Microsoft YaHei';font-size:16px;">图片大小&nbsp;</span></strong><strong><span style="font-family:'Microsoft YaHei';font-size:16px;">(px)</span></strong>
                </p>
            </td>
            <td width="25%">
                <p align="CENTER">
                    <strong><span style="font-family:'Microsoft YaHei';font-size:16px;">文件名</span></strong>
                </p>
            </td>
            <td width="25%">
                <p align="CENTER">
                    <strong><span style="font-family:'Microsoft YaHei';font-size:16px;">用途</span></strong>
                </p>
            </td>
            <td width="25%">
                <p align="CENTER">
                    <strong><span style="font-family:'Microsoft YaHei';font-size:16px;">重要程度</span></strong>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">512x512</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iTunesArtwork</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iTunes 商店中展示</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">可以没有,推荐有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">57x57</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iPhone/iPod touch上的App Store以及Home界面</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">这个真得有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">114x114</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon@2x.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iPhone 4(高分辨率)的Home 界面</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">可以没有,推荐有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">72x72</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon-72.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iPad上的App Store以及Home界面</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">可以没有,推荐有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">29x29</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon-Small.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iPad和iPhone的设置界面以及iPhone的Spotlight搜索界面</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">可以没有,推荐有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">50x50</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon-Small-50.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iPad上的Spotlight搜索界面</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">可以没有,推荐有</span>
                </p>
            </td>
        </tr>
        <tr valign="TOP">
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">58x58</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">Icon-Small@2x.png</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">iPhone 4(高分辨率)的Spotlight搜索和设置界面</span>
                </p>
            </td>
            <td width="25%">
                <p>
                    <span style="font-family:'Microsoft YaHei';font-size:16px;">如果有设置束,最好有</span>
                </p>
            </td>
        </tr>
    </tbody>
</table>

Info.plist文件



下面你也知道要怎么样了吧——对了,设置plist文件。首先,将所有的图标文件起好名字,添加到工程的Resources中去。



在.plist中添加一个Icon file字段



再添加Icon files文件字段,为Icon files添加子字段,就是所需的图标文件。如图所示。

icon_size_1.png
Ps:如果你只提供一些必须的文件,剩下的文件iPhone会为你生成的。
Update:现在不提供iPhone4的必须图标Icon@2x.png,将通不过App Store的审核,所以,现在Icon@2x.png也是必须的了。

Last modification:January 1st, 1970 at 08:00 am
如果觉得我的文章对你有用,请随意打赏: ☞已打赏列表

Leave a Comment