Replacing images in the bundle at run time

前端 未结 2 1974
时光说笑
时光说笑 2021-01-15 16:16

Can I replace images in bundle at run time? Basically, I have some images part of my bundle and also I will have them from the server if there is any change in the image. Ca

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-15 16:35

    You cannot change the bundle on runtime. This will prevent the app from running, as the profile won't be valid anymore. You will find tons of code how to deal with the sandbox folders provided by iOS on stackoverflow.

    edit
    Useful questions / answers

    • copying folder from bundle to documents
    • Downloading image into bundle

提交回复
热议问题