1
在文本框中,我输入一个url并将其下载到特定路径并存储该下载文件我必须给出该文件的具体位置和文件名。这是行得通的,但是当我下载任何其他格式(如.MP4,.AVI)将存储为MP3播放下载文件并保存到内存
NSString * URL =Textbox.text;
dest_path=[NSHomeDirectory() stringByAppending:@"/Documents/file.mp3"];
//to download url and save to specific path
download=[Downloader Download:URL withTargetPath:dest_path withDelagate:self];
我想,只要我下载应该从那里格式。就像被保存。如果我下载的MP4文件。它应该是与.MP4保存format.please提出了一些代码..
使用Asynchronus下载。 – Krunal