LaunchScreen.storyboard 换图的问题

in cn •  7 years ago  (edited)

之前设置了LaunchScreen.storyboard,在这个storyboard中加了一个imageView,里面设置了一张图片launch.png,今天需要更换这个启动
图片,我就直接去工程里面,把launch.png,[email protected],[email protected]这三张图片直接用其他图片覆盖了
,然后打开这个storyboard,这个storyboard里面的imageView的确变了,但是运行工程,并没有改变,显示的还是原来的图片
有人提出这两种办法:

删除重新安装,删除driverData,但是并没有卵用,老图片还是顽固的存在
把这个storyboard的Use as launch Screen选项取消掉,然后再重新选择
但是,并没有用。

正确的解决办法是 Assets.xcassets 替换图片的时候,把图片名字也替换掉。然后在 LaunchScreen.storyboard 更换用新的图片名字即可。

如果上面方法依旧不行,那就将图片拖入工程,不放到 Assets.xcassets 中。

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

WARNING - The message you received from @prashant is a CONFIRMED SCAM!
DO NOT FOLLOW any instruction and DO NOT CLICK on any link in the comment!
For more information, read this post:
https://steemit.com/steemit/@arcange/virus-infection-threat-reported-searchingmagnified-dot-com
Please consider to upvote this warning or to vote for my witness if you find my work to protect you and the platform valuable. Your support is really appreciated!