gpt4 book ai didi

ios - Xcode 6 迁移到图像 Assets 问题——黑色启动屏幕

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:57:55 25 4
gpt4 key购买 nike

我更新了我的应用程序以将图像 Assets 用于应用程序图标和启动图像我设置了两者 根据 Apple Doc 的适当图像大小。我有 Iphone 的问题 和 (4S/5/5S) 的模拟器启动图像/屏幕总是黑色的,除了 Iphone 6+ 但它在 iPad 上运行良好。我在这里看了几个帖子,什么都没有 工作如下

         1) deleting the asset catalog and creating a new one      
2) adding @2x and 3@x to each file before adding to the catalog
3) removing and redeploying the application

Anyone had that issue when porting image catalog ? Im using Xcode 6
Targeting ios 7 and 8

谢谢迈克

       Update 1
When disabling landscape launch screen appears normally
something i noticed before doing, so on either the device and the simulator
the application starts in landscape even if the device is held in portrait
and then it rotate to portrait. Still trying to solve that issue now

最佳答案

以下步骤对我有用:

  1. 使用以下名称将图像添加到项目(根目录或资源文件夹)(我将在 Portrait launchimages 中描述它们):Degault.png(3.5 英寸),Default-567h@2x(4 英寸),Default -667h@2x (iPhone 6),默认 736@2x (iPhone 6plus)。
  2. 转到目标设置、常规选项卡上的应用程序图标和启动图像 -> 将启动图像源设置为不使用 Assets 目录(“不使用 Assets 目录”)。
  3. 从您的主图像 Assets 中删除 LaunchImage Assets
  4. 转到常规选项卡上的目标设置、应用程序图标和启动图像 -> 将启动图像源设置为使用 Assets 目录
  5. XCode 6 将询问您有关从现有图像迁移图像 Assets 的问题。只需点击“迁移”即可。

它适用于 iOS7、iOS8 上的各种设备。笔记:如果您检查新的 LaunchImage Assets ,您会发现它真的很奇怪。它似乎只包含一些图像,没有 iPhone6 或 iPhone 6plus 分辨率的图像。

关于ios - Xcode 6 迁移到图像 Assets 问题——黑色启动屏幕,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26026620/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com