Subclass of UIImageView for asychronous image loading.
Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Classes
WebImage.xcodeproj
.gitignore
Info.plist
MainWindow.xib
README.rdoc
WebImageViewController.xib
WebImage_Prefix.pch
ajax-loader.gif
main.m

README.rdoc

UIWebImageView

This subclass of UIImageView provides asynchronous loading of web images. By using the initWithFrame:frame andUrl:url animated:animated initializer and reserved space for the image with an ActivityIndicator will be created.

Example Usage

Create a NSString for the URL you want to load, initialize UIWebImage and add it to your view.

NSString *url = [[NSString alloc] initWithString:@"http://farm2.static.flickr.com/1204/789803401_0017756904.jpg"];
UIWebImageView *webImage = [[UIWebImageView alloc] initWithFrame:CGRectMake(0,0,300,300) andUrl:url animated:YES];	
[[self view] addSubview:webImage];