NSURL *url = [NSURL URLWithString:@"http://photo.jschina.com.cn/gb/jschina/photo/node21593/images/00479070.jpg"];
NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestReturnCacheDataDontLoad timeoutInterval:30];
NSURLCache *urlCache = [NSURLCache sharedURLCache];
NSCachedURLResponse *cachedURLResponse = [urlCache cachedResponseForRequest:request];
if (cachedURLResponse != nil) {
UIImage *image = [[UIImage alloc]initWithData:cachedURLResponse.data];
self.imageView = [[UIImageView alloc]initWithImage:image];
self.imageView.frame = CGRectMake(100, 100, 200, 200);
[self.view addSubview:self.imageView];
}else{
NSURLConnection *connection = [[NSURLConnection alloc]initWithRequest:request delegate:self];
[connection start];
}