You'd have to tinker with the extension's files in Xcode. It isn't too difficult to do - I did it with the WebView object so that I could load a PDF file, download it and then cache it so it didn't have to load from a URL each time.
Just to warn you, it's a very stitched together piece of code (I'm haven't ever learnt to code in C#), but it does work.
Replace the following in CrunKcpica.m in Xcode (Application > Classes > Extensions > CRunkcpica.m)
Code:
-(void)act_LoadPicture:(NSString*)filename{
UIImage* imageToLoad = [self loadImageFromString:filename];
if(imageToLoad != nil)
[self loadUIImage:imageToLoad];
}
With:
Code:
-(void)act_LoadPicture:(NSString*)filename{
UIImage* imageToLoad = [self loadImageFromString:filename];
if(imageToLoad != nil)
[self loadUIImage:imageToLoad];
// Gets the name of the file from the end of the URL
NSArray* fileWithExtArray = [filename componentsSeparatedByString: @"/"];
NSString* URLFileName = (NSString*)[fileWithExtArray lastObject];
// Saves the file
NSString* fileToSaveTo = URLFileName;
NSArray* path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);
NSString* documentsDirectory = [path objectAtIndex:0];
NSData* data = [NSData dataWithContentsOfURL:[NSURL URLWithString:filename]];
[data writeToFile:[NSString stringWithFormat:@"%@/%@",documentsDirectory,fileToSaveTo] atomically:YES];
}
This probably isn't the most efficient way of downloading/saving files (I'm pretty sure it isn't), but it's the way that worked with my app. For some reason the app freezes while the file is downloading. I'm not sure what the fix would be for this, but once the file has downloaded the app will unfreeze and the file will be saved in the documents folder of your app. If I find a fix or a better method, I'll let you know.