UIImageView不读取LaunchImage表单资产

时间:2018-09-14 08:35:25

标签: ios xcasset launchimage xcode9.4

我在资产中添加了LaunchImage,并尝试将其加载到Launch.storyboard UIImageView上。但是它没有拾取图像。

我的启动图像源是“ LaunchImage”。在启动过程中,我的应用显示了失真的图像。

谢谢。

Added all launch images with sizes

Not reading images from LaunchImage

enter image description here

2 个答案:

答案 0 :(得分:0)

这是加载初始屏幕的错误方法。要显示资产图片,您需要更改其他设置。

注意:选择从项目目标的“常规”选项卡->应用程序图标和午餐图像->午餐图像源中启动图像资产。单击该按钮,然后从您已经添加的资产中选择LunchScreen。删除应用并重新运行

答案 1 :(得分:0)

在“常规设置”标签下,将“启动”屏幕源更改为LaunchImage

enter image description here