gpt4 book ai didi

iphone - Xcode:iPhone 5 App Launch 图像未更新

转载 作者:行者123 更新时间:2023-12-01 19:10:25 25 4
gpt4 key购买 nike

我正在使用 Cordova/PhoneGap 构建一个应用程序,并在 Xcode 中添加了我的应用程序启动图像。

但是,在我的 iPhone 5 上进行测试时,启动图像似乎没有改变 - 它仍然显示默认的 Cordova 版本。

我正在运行 Xcode 版本 4.6.2,我相信它是最新的,并且它确实为 4 英寸 iPhone 5 图像提供了空间——它只是在我在手机上测试时没有出现。

我使用的图像是文档中指定的 640x1136。

有人知道为什么会这样吗?

谢谢!

编辑:

我注意到出现了一个警告:

/Users/me/Documents/Cordova27/app/app/Classes/AppDelegate.m:80:25: 'useSplashScreen' is deprecated: Deprecated in Cordova 2.5. Add/Remove the SplashScreen plugin instead of setting this property.

它指的是 AppDelegate.M 文件中的这一行:
#endif
self.viewController.useSplashScreen = YES;

// Set your app's start page by setting the <content src='foo.html' /> tag in config.xml.
// If necessary, uncomment the line below to override it.
// self.viewController.startPage = @"index.html";

// NOTE: To customize the view's frame size (which defaults to full screen), override
// [self.viewController viewWillAppear:] in your view controller.

self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];

return YES;
}

最佳答案

  • 清理然后构建。
  • 从模拟器/设备中删除应用程序
  • 确保您的图像文件名应为 Default-568h@2x.png
  • 分辨率应该正好是 640x1136。
  • 关于iphone - Xcode:iPhone 5 App Launch 图像未更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16929796/

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