Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的资产中添加了 LaunchImage,并尝试在 Launch.storyboard UIImageView 上加载它。但它没有拾取图像。
我的启动图像源是“LaunchImage”。在启动期间,我的应用程序显示扭曲的图像。
提前致谢。
这是加载启动画面的错误方式。要显示资产中的图像,您需要更改其他设置。
注意:从项目目标常规选项卡-> 应用程序图标和午餐图像-> 午餐图像源中选择启动图像资产。单击它并从您已添加的资产中选择LunchScreen。删除应用程序并再次运行
不知何故,我的项目中有 2 个名称不同的资产文件,它从其他资产文件中提取了我之前使用的旧 LaunchImage。删除该文件,清理项目并重新启动解决了该问题。谢谢您的帮助。
将您的启动屏幕源更改为LaunchImage“常规设置”选项卡下。
LaunchImage