0
由于某些原因,当我从资产目录中以编程方式引用时,我的4英寸启动图像未被选中?它使用3.5的默认启动图像。任何线索?资产目录启动图像未被用于4英寸模拟器
UIColor *image = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"LaunchImage"]];
self.view.backgroundColor = image;
由于某些原因,当我从资产目录中以编程方式引用时,我的4英寸启动图像未被选中?它使用3.5的默认启动图像。任何线索?资产目录启动图像未被用于4英寸模拟器
UIColor *image = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"LaunchImage"]];
self.view.backgroundColor = image;
我不是使用启动图像资产目录,而是使用相同的图像创建另一个图像,并将其用作背景图像参考。
UIColor *image = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"Background"]];
self.view.backgroundColor = image;
如果您尝试直接引用该文件,它会加载正确的文件吗? –
你试过指定'LaunchImage-568h'吗?这是目前需要4“。 – darvids0n
可能重复[Xcode 5&资产目录:如何引用LaunchImage?](http://stackoverflow.com/questions/19107543/xcode-5-asset-catalog-how-to -reference最launchimage) – JosephH