2013-06-05 31 views
1

我正在用Cordova/PhoneGap構建一個應用程序,並在Xcode中添加了我的應用程序啓動圖像。Xcode:iPhone 5應用程序啓動圖像沒有更新

但是,在我的iPhone 5上進行測試時,啓動圖像看起來沒有改變 - 它仍然顯示默認的科爾多瓦版本。

我正在運行的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; 
} 

回答

0

需要-568h @ 2個後綴添加到您的圖像文件,所以它看起來像:

[email protected]

,那麼你從取景器將其拖放到目標總結推出圖片區。

+0

感謝圖像,但沒有改變(我的圖像讀取[email protected]) – MeltingDog

0

我在更改啓動圖像時遇到了類似的問題。

嘗試清潔您的構建和生成文件夾(cmd+option+k and cmd+option+shift+k)

您也可以嘗試清除了 「DerivedData」

(/用戶/ youruser /庫/開發商/ Xcode中/ DerivedData)

文件夾和「文件夾」(/private/var/folders)

0

基本上,當您在iOS設備上運行時,名稱區分大小寫。所以你的圖像文件名應該是[email protected],分辨率應該是640x1136。

3
  1. 清潔,然後建立。
  2. 刪除模擬器/設備
  3. 應用程序確保您的圖像文件名應[email protected]
  4. 分辨率應該是完全640x1136。
+0

謝謝,但仍然一無所獲。然而,我做了這個錯誤,但是我在上面加了 – MeltingDog

+0

在AppDelegate中註釋掉了這一行。m from self.viewController.useSplashScreen = YES; 至 //self.viewController.useSplashScreen = YES; 欲瞭解更多信息: http://docs.phonegap.com/en/2.5.0/cordova_splashscreen_splashscreen.md.html#Splashscreen – Kalaichelvan

+0

這對我有效。我認爲它可能已經從模擬器中刪除了應用程序。 – Alyoshak

0

更新在<your_project_name>/Resources/splash

相關問題