iOS启动图像文件类型 [英] iOS launch images file type
问题描述
我正在开发一款iPad应用并阅读这个页面表示启动图像必须是PNG格式,但在他们的iOS人工指南中,他们只建议使用.png,而不是必须。
我想使用.jpg格式作为我的发布图像,因为我在.png中的发布图像大小仅为2 mb,而.jpg格式只有90 kb。
谢谢
I'm working on an iPad app and reading this page that said launch images must be in PNG format, but in their iOS Human Guidelines, they only recommend to use .png, not "a must". I want to use .jpg format as my launch images because my launch images size in .png are about 2 mb alone, and only 90 kb in .jpg format. Thanks
推荐答案
您需要在Info.plist中指定UILaunhImageFile字段
You need to specify in the Info.plist the UILaunhImageFile field
<key>UILaunchImageFile</key>
<string>Default.jpg</string>
设置此信息将使系统查找Default.jpg及其所有变体(portait,landscape, @ 2x等)而不是.png
Setting this information will make the system look for Default.jpg and all its variations (portait, landscape, @2x, etc) instead of .png
例如,我正在编写一个通用应用程序,现在所有的启动图像都是.jpg,包括iPad Retina:默认-Portrait@2x.jpg
for example, I'm coding an Universal app, and now all the launch images are .jpg, including iPad Retina: Default-Portrait@2x.jpg
这篇关于iOS启动图像文件类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!