objective c - upload any Document in iOS -


in application, creating functionality in require upload document of type (pdf/xls/doc/image). after uploading document document name should show in screen , on click of document show document have selected.

how implement functionality, best practise this.

plz provide feedback.

you can create file using below code. here txt file.

nsstring *stringtowrite = @"this string"; nserror *error; nsstring *filepath = [[nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes) firstobject] stringbyappendingpathcomponent:@"filename.txt"]; [stringtowrite writetofile:filepath atomically:yes encoding:nsutf8stringencoding error:&error]; 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -