简体   繁体   English

资产目录中的启动图像仅包含2x和R4的空格

[英]Launch Image in asset catalog only has spaces for 2x and R4

I'm starting the design phase of an app and this is the first app I've ever built. 我正在开始应用程序的设计阶段,这是我构建的第一个应用程序。 The app is currently using iOS SDK 7.1 and has a Deployment Target of 7.0 该应用目前正在使用iOS SDK 7.1,部署目标为7.0

Even after all of the research I have done so far here on stackoverflow and reading the iOS 7 design guidelines, I am still having trouble figuring this out. 即使经过我迄今为止所做的所有关于stackoverflow和阅读iOS 7设计指南的研究,我仍然无法解决这个问题。

When I go to my asset catalog, and click on LaunchImage, it only has two slots. 当我转到我的资产目录并单击LaunchImage时,它只有两个插槽。 One for 2x and one for R4. 一个用于2x,一个用于R4。 However, a lot of the screenshots I keep seeing online have more slots than that. 但是,我在网上看到的很多截图都有更多的插槽。

If I click on the + symbol and select New Launch Image, then this new LaunchImage has a ton of slots for iPhone and iPad, even for iOS 5, 6, and 7. 如果我单击+符号并选择New Launch Image,那么这个新的LaunchImage有大量的iPhone和iPad插槽,即使是iOS 5,6和7。

Am I correct in thinking that I am only supposed to use the default LaunchImage with slots for 2x and R4, because my app has a deployment target of iOS 7.0 and the only iPhone models that iOS 7 supports have retina displays? 我是否认为我只应该使用带有2x和R4插槽的默认LaunchImage,因为我的应用程序具有iOS 7.0的部署目标,iOS 7支持的唯一iPhone型号具有视网膜显示?

EDIT: AppIcon in the asset catalog is similar. 编辑:资产目录中的AppIcon是类似的。 It only has 3 slots, and all of them have 2x underneath them. 它只有3个插槽,所有插槽都有2个插槽。

The AppIcon and LaunchImage assets in asset catalog respond to your project configuration. 资产目录中的AppIconLaunchImage资产会响应您的项目配置。

  1. If you have iOS SDK 7.1 and deployment target of 7.0, you do not need any iOS 6 resources , because your project will not run on iOS 6 operating system. 如果您有iOS SDK 7.1和7.0的部署目标, 则不需要任何iOS 6资源 ,因为您的项目将无法在iOS 6操作系统上运行。 Why would you waste application size, when resources are not used ever? 当资源不使用时,为什么要浪费应用程序大小?

  2. Same goes for iPhone and iPad. iPhone和iPad也是如此。 You probably selected your project as iPhone only, so you do not need iPad resources. 您可能只将您的项目选为iPhone,因此您不需要iPad资源。

  3. If you selected deployment target 7.0, that means that the device needs at least iOS 7.0 installed for your application to run. 如果选择了部署目标7.0,则表示设备至少需要安装iOS 7.0才能运行应用程序。 Because iOS 7 only runs on Retina phones (iPhone 4 and newer), you do not need resources for anything else except Retina (which have the @2x in the name). 由于iOS 7仅在Retina手机(iPhone 4及更新版本)上运行,因此除了Retina (其名称中包含@ 2x)之外, 您不需要任何其他资源

    You do need resources for normal devices, if you are running on the iPad, because iPad 2 and iPad Mini do not have Retina. 如果你在iPad上运行,你需要普通设备的资源,因为iPad 2和iPad Mini没有Retina。

Hope this explains it. 希望这能解释它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在iPhone 6上未显示Retina 4 2x类型的资产目录图像 - Asset catalog images of type Retina 4 2x not presented on iPhone 6 启动自定义网址图片 - 故事板或资产目录 - Launch image for custom url - storyboard or asset catalog 资产目录Xcode 6.1.1启动图像肖像 - Asset Catalog Xcode 6.1.1 Launch Image Portrait iPad Pro启动图像的大小是2倍? - size of iPad pro launch image 2x? 将许多图像添加到xcodes资产目录 - 如何管理命名以及每个1x,2x,3x? - Add many images to xcodes asset catalog - how to manage naming and 1x,2x,3x for each? 使用静态图片作为Asset Catalog中的启动图片iOS 9 - Use static image for launch image iOS 9 from Asset Catalog 使用 UIScreen.main.scale 以编程方式缩放 @3x 图像的结果与资产目录不同 - Programmatic scaling of @3x image with UIScreen.main.scale has different result than Asset Catalog 在资产目录中使用iOS启动图像的矢量图稿? - Use vector artwork for iOS launch image in asset catalog? Xamarin iOS启动屏幕图像在故事板中不从资产目录拉出 - Xamarin iOS Launch Screen Image In Storyboard Not Pulling From Asset Catalog 启动图像在使用资产目录后未在iOS7 iPhone上显示 - Launch Image not shown on iOS7 iPhone after using asset catalog
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM