Today, I used IOS asynchronous image loading. I found the sdwebimage that everyone talked about on the Internet. I haven't done it for half a day by referring to some previous blogs, in fact, readme on GitHub has been clearly written, but I did not carefully read it.
Let me talk about the problem. First, I downloaded sdwebimage. Framework, dragged it to the project, and then:
# Import "uiimageview + webcache. H"
If the Import fails, the message "uiimageview + webcache. h file not found" is displayed"
Then, I can find various methods on the Internet to search the header path, which doesn't work. I will take a closer look at the results. The latest sdwebimage version needs to be imported instead of the above sentence. I need:
# Import <sdwebimage/uiimageview + webcache. h>
Then build, everything is OK.
Another problem is:
Symbol not found: _ objc_storestrong
This is because I referenced the arc sdwebimage in the no arc project. Change it to the following:Build settings-> Other linker
Add flags-Fobjc-Arc
.
To use and download sdwebimage, go to: sdwebimage
For specific usage, see the latest readme.