【问题标题】:iOS 6 iPhone 5 App NOT fullscreen in Phonegap Build?iOS 6 iPhone 5 App 在Phonegap Build 中没有全屏显示?
【发布时间】:2023-03-22 02:42:01
【问题描述】:

嘿,我正在运行我的应用程序,它似乎在我的 android 设备上是全屏的,但它在 iPhone 5 的顶部/底部有黑条......我需要设置哪些设置才能使它们工作?

我的应用在我的 android 上的外观是这样的:

它在我的 iPhone 5 上的外观是这样的:

【问题讨论】:

    标签: android ios cordova fullscreen phonegap-build


    【解决方案1】:

    为您的应用添加 iphone 5 的默认图像 Default-568h@2x.png。这会自动消除条形图。

    【讨论】:

      【解决方案2】:

      要提供更多细节,请将此行和相应的图像添加到您的 config.xml 文件中:

      <gap:splash src="images/Default-568h@2x.png" gap:platform="ios" width="640" height="1136" />
      

      【讨论】:

        【解决方案3】:

        当未指定 启动屏幕文件 时也会发生这种情况。 去

        Target Setting --> General --> App Icons and Launch Images --> Launch Screen File --> (select) Main.Storyboard.

        完成!

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2013-07-02
          • 2014-12-24
          • 1970-01-01
          • 2012-09-14
          • 1970-01-01
          • 2016-11-02
          • 2012-09-09
          • 2012-10-17
          相关资源
          最近更新 更多