ios 13.0 以后 废弃 launch image 做为启动图

1.刪除Images.xcassets中的LaunchImage文件夹 凡是带有 launchImage 的文件都要删除

2.在Build Settings中,Asset Catalog Launch Image Set Name中刪除LaunchImage(包含Debug和Release中)

3.在项目中添加LaunchScreen.storyboard

  • 设置storyboardID为LaunchScreen;

4.修改项目的配置:

TARGETS -> General -> App Icons and Launch Images -> Launch Screen File -> Main TARGETS -> General -> Main Interface -> LaunchScreen markdown

5.运行项目,每一步都不能少,否则报错!

6.LaunchScreen.storyboard 中添加界面和布局内容 不必定要一整张完整的图片 也能够是 布局搭建

  • 若是是一整张图

添加imageView,设置image为scaleAspectFill,添加mage,四周间距为0;布局

去掉use Full Screen的勾选;ui

相关文章
相关标签/搜索