warning - Launch image are deprecated in iOS13.0. Use a launch storyboard or XIB instead

1、刪除Images.xcassets中的LaunchImage文件夹

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

3、在项目中添加LaunchScreen.storyboard

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

设置storyboardID为LaunchScreen;

去掉use Full Screen的勾选;

warning - Launch image are deprecated in iOS13.0. Use a launch storyboard or XIB instead_第1张图片

 

4、修改项目的配置

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

TARGETS -> General -> Main Interface -> LaunchScreen

warning - Launch image are deprecated in iOS13.0. Use a launch storyboard or XIB instead_第2张图片

5、运行项目,每一步都不能少,不然报错!

你可能感兴趣的:(iOS优化)