I have a bunch of UIButton in a UIScrollView and each UIButton takes an image from a URL. What is the easiest way so that the image will be loaded asynchronously?
For example, the usual way is:
[button setImage:[UIImage imageWithData:data] forState:UIControlStateNormal];
but this blocks the UI, I don’t want it to
You can try this
In loadImage function load the image from url and then assign it to the button.
I am not sure this will work for you…As I am a beginner in objective C development