Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ulquiorra

macrumors member
Original poster
Jun 17, 2009
38
0
I have a question concerning the caching of webcontent.

I've created a UIWebview component

Code:
	NSString *urlAddress = @"http://192.168.55.101/~test/mobile/iphone/ads/v0.1/";
			
			//URL OBJECT footer
			UIWebView *aWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 320 , 100)];
			NSURL *url = [NSURL URLWithString:urlAddress];
			NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
			[aWebView loadRequest:requestObj];

This shows a picture in my iPhone.
I've tried looking into cache attributes and functions (for instance NSURLRequestReturnCacheDataElseLoad ) to see which options I have , but what's the best way to cache the image appearing in this screen.

Or how do I use NSURLRequestReturnCacheDataElseLoad?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.