美文网首页
iOS 设置启动图launchImage

iOS 设置启动图launchImage

作者: xieyinghao | 来源:发表于2017-06-27 16:21 被阅读1106次

使用LaunchScreen.storyboard设置启动图
1.打开LaunchScreen.storyboard

1.png

2.在LaunchScreen.storyboard上拖入一个imageView
3.在Assets.xcassets 中 画红线的区域,右击,点击New Image Set,在右边的image中拖入裁切好的图片

2.png

4.回到LaunchScreen.storyboard,将Assets.xcassets中的图片拖到iamgeView中.
5(Xcode默认已经选择好LaunchScreen.storyboard作为启动图设置,如果前四步设置好还没有出现启动图,请参照此条)查看TARGETS中的General下的App Icons and Launch Images选项中的Launch ScreenFile 是否是LaunchScrren
注意:选择LaunchScreen.storyboard
第四步完成的时候就已经设置成功启动图了.如图:

相关文章

网友评论

      本文标题:iOS 设置启动图launchImage

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