You can try this way:
1) Add a View
button containing a UIWebView
2) When you click the button, save the file shown in UIWebView
(note: in iOS 5 you must save data that can be easily recreated or loaded into the cache directory)
- (IBAction)buttonPress:(id)sender { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); NSString *cachePath = [paths objectAtIndex:0]; BOOL isDir = NO; NSError *error;
3) When you start the application, you need to check which files are stored (iOS can delete the cache directory if there is not enough space on the iPhone)
source share