One, experience
1. When you create a download object using the new method, the downloaded picture always fails and does not perform a successful or failed callback.
2. Refer to someone else's code, with the Shareddownloader to create the download object, you can download the picture smoothly.
3. Look at the Sdwebimage source code, found that the source code in the Shareddownloader method is purely a singleton method, the same will call the new method.
4. After the solution, I suspect that the object created by the new method will soon be destroyed, and that the downloaded object created by Shareddownloader will not be destroyed and therefore downloaded successfully.
Second, Experience summary
1. When a method fails, be sure to try the other methods inside the header file until it succeeds. Most of the time I just can't think of it.
Download image using Sdwebimage, Shareddownloader method download succeeded, new method download failed