{"id":32,"date":"2008-10-29T14:04:50","date_gmt":"2008-10-29T18:04:50","guid":{"rendered":"httpss:\/\/www.powenko.com\/blog\/?p=32"},"modified":"2008-10-29T14:30:01","modified_gmt":"2008-10-29T18:30:01","slug":"iphone-object-c-nsurldownload-cannot-working-on-device","status":"publish","type":"post","link":"https:\/\/www.powenko.com\/wordpress\/?p=32","title":{"rendered":"iphone, Object-c, NSURLDownload cannot working on device."},"content":{"rendered":"<p>Mm&#8230;..<br \/>\nI write a code for download a txt file to my iphone, and used NSURLDownload class, it was working very well on simulator, until test the code on Device,<br \/>\nApple iphone has compiler error<br \/>\n&#8220;error: NSURLDownload undeclared&#8221;<\/p>\n<p>same code can working on Simulator , but not device.<\/p>\n<p>Copied from the iPhone Documentation<br \/>\n&#8220;iPhone OS Note: The NSURLDownload class is not available in iPhone OS as downloading directly to the file system is discouraged. Use the NSURLConnection class instead&#8221;<\/p>\n<p>addition:<br \/>\nOct,  29,2008 :<br \/>\nYes, Used NSURLConnection can do the same function, and working well on iPhone device.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mm&#8230;.. I write a code for download a txt file to m [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/32"}],"collection":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":0,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}