Skip to content

Instantly share code, notes, and snippets.

@shalyf
Last active January 10, 2018 07:53
Show Gist options
  • Save shalyf/ad7f83bb3d0df1ce034279a1d3896815 to your computer and use it in GitHub Desktop.
Save shalyf/ad7f83bb3d0df1ce034279a1d3896815 to your computer and use it in GitHub Desktop.

启动屏中要添加图片经常会出现图片无法展示的问题
查了很多资料,最后得出一个对我来说有用的结论
1、将图片添加到根目录中
2、将图片添加到Assets.xcassets中
3、在LaunchScreen.storyboard中添加一个UIImageView,然后添加Assets.scassets中的图片即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment