请帮助我,为什么我启动 AFDownloadRequestOperation ,界面没有响应,但我下载了文件,界面响应。我应该如何解决?
我认为是否与文件的写入速度有关,如果您可以使程序保持无响应,则下载太快和写入太快?
这是我的代码:
self.operation = [[AFDownloadRequestOperation alloc] initWithRequest:[[NSURLRequest
alloc] initWithURL:[NSURL URLWithString:video.url]]
targetPath:[[[[PlistManager
sharedInstance] getDirectory]
stringByAppendingPathComponent:[NSString
stringWithFormat:@"%@.mp4",video.vid]]
shouldResume:YES];
[self.operation start];