在我的iPad应用中,仅限于 UIInterfaceOrientationLandscapeRight ,我添加了名为 default-Landscape.png& default-Landscape@2x.png 图片,但它在模拟器中呈现,但不在我的iPad中呈现。
答案 0 :(得分:1)
我认为你的意思是默认图像。
转到目标 - 摘要视图并检查图像是否设置为“启动图像”并且没有错误或警告(通常由于尺寸问题,您将在图片上看到一个小黄色标记)
假设您仍有问题,请尝试在Photoshop中打开原始图像并将其重新导出为PNG 24
答案 1 :(得分:1)
所有文件名都区分大小写。
将它们重命名为:Default-Landscape.png& Default-Landscape@2x.png
资本“D”
在模拟器中它不区分大小写,但在设备中它是
希望它有所帮助。快乐的编码:)答案 2 :(得分:0)
参考Automatic orientation support for iPhone and iPad apps By Apple
仅限iPad的应用程序:
以PNG格式为每个支持的方向创建启动图像。每个启动图像必须为1024 x 748像素(对于横向)或768 x 1004像素(对于肖像)。
默认启动图像文件:
Default-PortraitUpsideDown.png - upside-down portrait version.
Default-LandscapeLeft.png - left-oriented landscape version.
Default-LandscapeRight.png - right-oriented landscape version.
Default-Portrait.png - generic portrait version.
Default-Landscape.png - generic landscape version.
Default.png - default portrait launch. Its usage is strongly discouraged, use more specific launch images instead.For iPad launch images, do not include the status bar region.
创建这些尺寸的启动图像:
For portrait:
768 x 1004 pixels
1536 x 2008 pixels (high resolution)
For landscape:
1024 x 748 pixels
2048 x 1496 pixels (high resolution)
答案 3 :(得分:0)
这发生在Ionic 3应用程序上。最终,我发现它正在加载的图像是Default@2x~universal~anyany.png