我有一個應用程序,我在其中使用FTPHelper.h和FTPHelper.m文件。FTP下載速度很慢iPhone
我正在使用FTP從專用服務器下載圖像。
它在我的項目中工作正常,但從服務器下載的圖像非常緩慢。
我有4.5mb的50個圖像下載,它需要將近4到5分鐘下載。
我在我的項目中導入了兩個文件FTPHelper.h和FTPHelper.m,下面是我正在使用的代碼。
-(void)getdata
{
[FTPHelper sharedInstance].delegate = self;
[FTPHelper sharedInstance].uname = BASE_USERNAME;
[FTPHelper sharedInstance].pword = BASE_PASSWORD;
[FTPHelper sharedInstance].urlString = BASE_URL;
[FTPHelper list:BASE_URL];
[FTPHelper download:file];
}
有沒有其他方法可以減少它的時間?
謝謝...
你想要什麼?在UITableView中顯示圖像? –
不。我正在從服務器下載圖像並將該圖像保存在文檔目錄中。 – Manthan
嘗試使用AsyncImageView我發佈的鏈接關於答案見.. :) –