码迷,mamicode.com
首页 > 移动开发 > 详细

iOS App设置icon,启动图

时间:2016-02-15 10:37:48      阅读:265      评论:0      收藏:0      [点我收藏+]

标签:

每款App都要有自己的icon,和名称。需要的话还需要设置启动图。
今天我们就来说一下如何设置这些。本篇博客暂不讨论关于尺寸的问题。

icon:
icon的设置还是很简单的
技术分享
根据上图的箭头和红框标记所示,
首先在工程中选中“images”,然后选择“AppIcon”,把预先准备好的各个尺寸的icon拖到相应的框中。

 

iOS7到iOS8以前需要的icon尺寸以及名称

Image Size (px)

File Name

Used For

App Store

Ad Hoc

512x512

iTunesArtwork

App list in iTunes

Do not include

Optional but recommended

1024x1024

iTunesArtwork@2x

App list in iTunes for devices with retina display

Do not include

Optional but recommended

120x120

Icon-60@2x.png

Home screen on iPhone/iPod Touch with retina display

Required

Required

76x76

Icon-76.png

Home screen on iPad

Required

Required

152x152

Icon-76@2x.png

Home screen on iPad with retina display

Optional but recommended

Optional but recommended

40x40

Icon-Small-40.png

Spotlight

Optional but recommended

Optional but recommended

80x80

Icon-Small-40@2x.png

Spotlight on devices with retina display

Optional but recommended

Optional but recommended

29x29

Icon-Small.png

Settings

Recommended if you have a Settings bundle, optional otherwise

Recommended if you have a Settings bundle, optional otherwise

58x58

Icon-Small@2x.png

Settings on devices with retina display

Recommended if you have a Settings bundle, optional otherwise

Recommended if you have a Settings bundle, optional otherwise

 
iOS6.1及之前版本icon尺寸及其名称

Image Size (px)

File Name

Used For

App Store

Ad Hoc

57x57

Icon.png

Home screen on iPhone/iPod touch (iOS 6.1 and earlier)

Required

Required

114x114

Icon@2x.png

Home screen on iPhone/iPod Touch with retina display (iOS 6.1 and earlier)

Optional but recommended

Optional but recommended

72x72

Icon-72.png

Home screen on iPad (iOS 6.1 and earlier)

Required

Required

144x144

Icon-72@2x.png

Home screen on iPad with retina display (iOS 6.1 and earlier)

Optional but recommended

Optional but recommended

29x29

Icon-Small.png

Spotlight on iPhone/iPod Touch (iOS 6.1 and earlier) and Settings

Recommended if you have a Settings bundle, otherwise optional but recommended

Recommended if you have a Settings bundle, otherwise optional but recommended

58x58

Icon-Small@2x.png

Spotlight on iPhone/iPod Touch with retina display (iOS 6.1 and earlier) and Settings on devices with retina display

Recommended if you have a Settings bundle, otherwise optional but recommended

Recommended if you have a Settings bundle, otherwise optional but recommended

50x50

Icon-Small-50.png

Spotlight on iPad (iOS 6.1 and earlier)

Optional but recommended

Optional but recommended

100x100

Icon-Small-50@2x.png

Spotlight on iPad with retina display (iOS 6.1 and earlier)

Optional but recommended

Optional but recommended

 

 

App名称:
技术分享
如图所示
选择你的工程,选中“Info”,再点击“Bundle Display Name”,在后面填上我们需要的App名称即可

启动图:
这个稍微麻烦点,下面要仔细看了
第一步
技术分享
首先仍然选择“iamges”,可能在“4”这里找不到“LaunchImage”,这时在“2”点击加号,选择“New Launch Image”,即可。
如果已经有了“LaunchImage”,把对应的启动图拖进来就可以了。

第二步
技术分享
选择“1”的工程名称,“2”的“General”,“3”中“Launch Image Sources”选择对应的启动图的名称,“Launch Screen File”什么都不用选即可。

这时启动图就设定好了。当然这只是最基本的启动图设置方法,也可以自定义启动图,这里就暂时不说了。
看下效果图

这是icon和名称的
技术分享

还有启动图的
技术分享

iOS App设置icon,启动图

标签:

原文地址:http://www.cnblogs.com/boyuanmeng/p/5189989.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!