How to get array of UIImage, from folder, in Swift?

前端 未结 5 1423
别跟我提以往
别跟我提以往 2021-02-13 19:18

I have an ordinary Xcode project like this ...

notice there\'s a folder (it is an actual folder - not just a group) named \"images\". It contains 25 \".png\" im

5条回答
  •  遇见更好的自我
    2021-02-13 19:41

    Joe.

    Please try as followings:

    My current situation was as follows. enter image description here

    1. You have to register your images to "Copy Bundle Resources".

    2. You have to add filter module in main Bundle. enter image description here

    It is working as well on my side. Maybe you can change filter from "jpg" format into "png" one.

    I've tested on iOS 10.x later, Swift 3.0 and xcode 8.1 version. If you have any problem, please contact me.

提交回复
热议问题