古い Phonegap でこの問題を修正する方法を見つけたところですが、非常に簡単に修正できます。PhoneGapDelegate.m で、これを見つけます。
UIImage* image = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Default" ofType:@"png"]];
imageView = [[UIImageView alloc] initWithImage:image];
[image release];
これを次のように置き換えます。
UIImage* image;
if ([[UIScreen mainScreen] bounds].size.height == 568.0f)
{
image = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Default-568h@2x" ofType:@"png"]];
}
else
{
image = [[UIImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Default" ofType:@"png"]];
}
imageView = [[UIImageView alloc] initWithImage:image];
[image release];
何らかの理由で、上記のコードのように、iPhone 5 イメージの完全なイメージ名を指定する必要があります。@"Default-568h" だけで指定すると画像は一切読み込まれません。