gpt4 book ai didi

iphone - Default-PortraitUpsideDown.png 未在 iPad 上加载

转载 作者:行者123 更新时间:2023-12-03 21:11:08 25 4
gpt4 key购买 nike

我正在尝试让我的启动屏幕在 iPad 上以正确的方向加载。风景 png 加载得很好,肖像也一样,但颠倒的肖像总是正面朝上(当它应该是颠倒的时候)。我的 PNG 命名如下:

Default-Portrait.png
Default-PortraitUpsideDown.png
Default-Landscape.png
Default.png

我的 plist 中有这个:

<key>UIInterfaceOrientation</key>
<string>UIInterfaceOrientationPortrait</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>


还有什么我可以尝试的吗?这个应用程序是用 OpenFrameworks api 编写的(如果这有什么不同的话)。另外,我尝试省略 Default-PortraitUpsideDown.png,以便 Default-Portrait 图像会自动旋转,但我得到了相同的结果。

最佳答案

如果 Default-PortraitUpsideDown.png 与启动时应有的方向相反,则将其从当前方向旋转 180 度,保存文件,这样就可以解决您的问题。

关于iphone - Default-PortraitUpsideDown.png 未在 iPad 上加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3257698/

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