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?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- How can I add media attachments to my push notific
Not sure about a RestKit solution, but SDWebImage is a library that will let you easily load images asynchronously by adding a category to UIImageView, so all you have to write is this (for example):
Using RestKit you can use
RKRequest
to load the data for the image in a manner such as:Note that even in the
onDidLoadResponse
case you may want to checkresponse
to make sure the type of data is what you expected. The image loading queue used above can be created like so: