Downloading a file

Example of downloading a file and saving it in a directory in Documents In the .h file @interface AppMain : NSObject //-ADD THIS DELEGATE { FileDownloader *fileDownloader1; //-ADD THIS In the .m file //********** DOWNLOAD FILE ********** – (void) SomeMethodName { NSLog(@”STARTING DOWNLOAD”); if (!fileDownloader1) fileDownloader1 = [[FileDownloader alloc] init]; [fileDownloader1 setDelegate:self]; [fileDownloader1 DownloadFile:@”http://www.somedomain.com/somefile.html”]; } […]

Read More