美文网首页iOS 适配
iOS launchscreen.storyboard适配启动

iOS launchscreen.storyboard适配启动

作者: 身体和灵魂总有一个在路上 | 来源:发表于2020-05-12 15:24 被阅读0次

1.设置Launch Screen Image

2.检查Build Setting

3.设置 launchscreen.storyboard,在view上添加一个UIImageView,设置约束上下左右间距为0。添加启动图片。(first是我的启动图片的名字,因为图片first被删除了才变成蓝色了)

一定要勾选Use as  Launch Screen

4.图片的Content Mode设置Aspect fill

5.启动图片依然放在Assets.xcassets中

如果遇到其他黑屏问题可以参考https://www.jianshu.com/p/d2b0f20e2e96

相关文章

网友评论

    本文标题:iOS launchscreen.storyboard适配启动

    本文链接:https://www.haomeiwen.com/subject/yvmbnhtx.html