MNMRemoteImageView
is a simple drop-in replacement for UIImageView
that asynchronously shows an image downloaded from an URL. You can use the control as a regular UIImageView
.
While the download is running an activity indicator is shown over the view. A block is invoked when the image has finishing download.
-
Import
MNMremoteImageView
files into your project. -
Create the image view as always, from a XIB or initializing it with the regular constructors.
-
You can show an image from an URL this way
[remoteImageView displayImageFromURL:url completionHandler:^(NSError *error) { // Do something }];
-
You can see some examples in
ViewController
class.
Execute appledoc appledoc.plist
in the root of the project path to generate documentation.