ios - Browse PDF file from iPhone and Upload on server -


in application need allow user browse pdf files iphone , upload 1 server.
know how upload pdf file on server, don't know how can browse pdf files.

please me.

you can view files in app's sandbox. every app has got documents, cache , temp folders.

sample code :

nserror *err        = nil; nsarray *mypathlist = nssearchpathfordirectoriesindomains(nscachesdirectory, nsuserdomainmask, yes); nsstring *mypath    = [mypathlist  objectatindex:0]; nsarray *dircontent = [[nsfilemanager defaultmanager] contentsofdirectoryatpath:mypath error:&err]; if(err) nslog(@"error: %@",[err localizeddescription]); nsmutablearray *filepaths  = nil;  int count = (int)[dircontent count]; for(int i=0; i<count; i++) {     [filepaths addobject:[dircontent objectatindex:i]]; } return filepaths; 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -