出于某种原因,当我从 Assets 目录中以编程方式引用我的 4 英寸启动图像时,没有选择它?它使用 3.5 的默认启动图像。有什么线索吗?
UIColor *image = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"LaunchImage"]];
self.view.backgroundColor = image;
最佳答案
我没有使用启动图像 Assets 目录,而是创建了另一个具有相同图像的图像并将其用作背景图像引用。
UIColor *image = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"Background"]];
self.view.backgroundColor = image;
关于ios - Assets 目录启动图像未用于 4 英寸模拟器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19651158/