ios Xcode:如何更改 xcode 5 中的图标?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18987510/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode: How to change icon in xcode 5?
提问by Mangy92
I'm trying to change the icon in my old app project. I've updated to xcode 5 and want to get a "ios 7 design". However, you don't change the icon the way you did before. I've seen that you are supposed to have e file called Images.xcassets with should include your icons, but I don't have that one because you only seem get it if you are making a new project.
我正在尝试更改旧应用程序项目中的图标。我已更新到 xcode 5 并希望获得“ios 7 设计”。但是,您不会像以前那样更改图标。我已经看到你应该有一个名为 Images.xcassets 的文件,其中应该包含你的图标,但我没有那个,因为你似乎只有在制作一个新项目时才会得到它。
This should be very easy, what should I do??
这应该很容易,我该怎么办??
采纳答案by Caleb
Select the project icon in the file list, choose the General tab, and scroll down to the App Icons section. From there you can either:
在文件列表中选择项目图标,选择常规选项卡,然后向下滚动到应用程序图标部分。从那里你可以:
use the Source popup to choose "Don't use asset catalogs"
create a new asset catalog and drag your icons into it; clicking the little grey arrow icon next to the popup will take you to the icons in your assets catalog
使用源弹出窗口选择“不使用资产目录”
创建一个新的资产目录并将您的图标拖入其中;单击弹出窗口旁边的小灰色箭头图标将带您到资产目录中的图标
回答by Rio
Steps:
脚步:
- Project Navigator
- Click on root (project properties)
- Click on tab General
- Sections App Icons
- Click on gray arrow
- 项目导航
- 单击根(项目属性)
- 单击选项卡常规
- 部分应用程序图标
- 点击灰色箭头
(BTW This is the same as find Images.xcassets in project navigator)
(顺便说一句,这与在项目导航器中查找 Images.xcassets 相同)
Now you can drag and drop icons to proper placeholders.
现在您可以将图标拖放到适当的占位符。
回答by RFG
Porting an App from xcode 4.6 to xcode 5 I didn't use The Images.xcassets file. Where in xcode 4.6 was the place to put icons and launch screens, in xcode 5 there is a large list of icon sizes to put the icon app for iOS 7, iOS 6.1 and prior versions, spotlight...
将应用程序从 xcode 4.6 移植到 xcode 5 我没有使用 Images.xcassets 文件。在 xcode 4.6 中放置图标和启动屏幕的地方,在 xcode 5 中有一个很大的图标大小列表来放置 iOS 7、iOS 6.1 和之前版本的图标应用程序,聚光灯...