Hi all,
My app download images from internet and display to the users. I dont want to use caching and I also dont want user to save images on iphone anyway. So I need to know
1) what extra things I need to take care off to achieve this.
2_ Following is the code used to disable caching. Please correct me if I m wrong somewhere. I have written this code in ViewDidload method.
Code:
NSURLCache * cache=[NSURLCache sharedURLCache];
[cache setMemoryCapacity:0];
[cache setDiskCapacity:0];
[cache removeAllCachedResponses];
My NSURLRequest is like following line.
Code:
NSURLRequest *imageRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:ImageUrl]
cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:15.0];
Regards,
Ali.