earlier need to also include a Launch Image in an Asset Catalog.

本文解决了iOS应用程序在使用UIImageView时出现的警告问题,该警告提示需要为iOS 7.1及更早版本添加启动图片。通过使用资源目录并迁移启动图片可以消除此警告。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在用到UIImageView的时候,发现程序有一个惊叹号的提示,具体错误提示如下:

Applications using Launch Screen Files and targetting iOS 7.1 and earlier need to also include a Launch Image in an Asset Catalog.

经过google,在stackoverflow找到了解决的办法,解决办法如下:

I ran into the exact same problem this morning. Here's how I fixed it.

     1、Select your project in the project navigator. Under the General tab, you should see the section for App Icons and Launch Images. Where you see Launch Images Source, click 'Use Asset Catalog'.

     2、You will then see Migrate launch images to an asset catalog dialogue. Click 'Migrate'.

     3、Make sure that your Launch Images Source on the previous screen points to the right image set in your asset catalog.In your case, you would set it to 'Default'.

That should take care of the warning. Hope that helps!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值