Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 768 Bytes

File metadata and controls

25 lines (15 loc) · 768 Bytes

RSImageView

UIImage progressive download.

RSImageView is a simple and easy-to-use UIImageView subclass for the iOS app. The RSImageView class uses NSURLConnection behind, and constructs the UIImage from the downloaded data from the delegate methods of NSURLConnections.

Screenshot

Usage

RSImageView *imageView = [[RSImageView alloc] initWithFrame:CGRectMake(10, 30, 340, 400)];
[imageView setImageURL:[NSURL URLWithString:@"https://docs.google.com/uc?export=download&id=0B6gRtssGeIGqTlRQT05QWFc5azg"]];
[self.view addSubview:imageView];

[imageView start];

(see the sample project for more details)

You can stop the download by calling the pause action of RSImageView at any time.