This is my objective-c Multi-Tasking & FileManaging project.
I have implemented a simple few methods that
-
- (void) startDownloadingContent: (NSArray*)urls Run through an array of urls and downloads all from web on a dispatch group.
-
- (NSString *) saveDataToFileAndReturnFilePath: (NSData *)dataFromURL andHashByURL: (NSURL *)urlToHash Saves each downloaded file to Application document folder.
-
- (void) waitUntilContentIsDownloaded Waits for all files to finish download, blocks main queue while doing so.
-
- (NSString*) getPathPerUrl: (NSURL*)url Returns FileSystem path for each URL downloaded.
-
Simple UI testing.