我正試圖下載一個zip文件。它爲myURL1返回0字節,此代碼適用於返回大約200000字節的xml文件。如何將zip文件下載到iphone?
NSURL *myURL1 = [NSURL URLWithString:@"http://www.enginbodur.com/files/GetAccounts.zip"];
NSURL *myURL2 = [NSURL URLWithString:@"http://www.jjfoodservice.com/rss/productscatalogue.xml"];
NSData *myData = [NSData dataWithContentsOfURL:myURL];
有人可以告訴我如何從網址下載zip文件嗎?
謝謝
這不是順便說一句。無論如何我會檢查NSURLConnection。感謝您的幫助 – EnginBodur 2010-11-24 11:45:55