objective c - Download a PDF file from server -


i want download pdf file server , save documents directory. able using nsdata file in documents directory not pdf: it's nsdata object. there way download , save straight pdf file?

nsdata *pdfdata = [nsdata datawithcontentsofurl:     [nsurl urlwithstring:@"http://…"]]; [pdfdata writetofile:@"…" atomically:yes]; 

this not work?


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -