gpt4 book ai didi

ios - Images.xcassets 为 iPhone 6 拍摄了错误的图像?

转载 作者:可可西里 更新时间:2023-11-01 04:43:49 26 4
gpt4 key购买 nike

我已经为@2x @Retina 4 和@3x 设置了三个图像。

enter image description here

当我运行该应用程序时,我得到了以下结果。

  1. iPhone 4s : 推特图片
  2. iPhone 5:谷歌图片
  3. iPhone 6+ : facebook 图片。
  4. iPhone 6 : 推特图片

一切都很好。但是当我在 iPhone 6 上运行时,它采用 twitter 图像,但它应该采用 google 图像。

这是xcode的bug吗?

最佳答案

在 iPhone 6 中你会得到 @2x 的图像在 iPhone 5 和 5s 中,您将获得 Retina 4 @2x 的图像。

检查我在此处设置的示例图片。 enter image description here

iPhone 5 的结果

enter image description here

iPhone 6 结果

enter image description here

但在 iPhone 4 和 iPhone 6 中你会得到相同的图像。这次您必须为不同的设备编写代码。因为苹果没有提供文档。到时候,如果我有新的东西,我会在这里发布。

谢谢!

关于ios - Images.xcassets 为 iPhone 6 拍摄了错误的图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27577082/

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