Is there a wrapper or some sort of built-in functionality available in RestKit to load a UIImage from an NSURL asynchronously using callbacks or blocks? I could not find such a method in the RestKit docs. If there is not, what is a good strategy for implementing lazy loaded async images from NSURL using RestKit as much as possible?
Is there a wrapper or some sort of built-in functionality available in RestKit to
Share
Using RestKit you can use
RKRequestto load the data for the image in a manner such as:Note that even in the
onDidLoadResponsecase you may want to checkresponseto make sure the type of data is what you expected. The image loading queue used above can be created like so: