ios - Read PDF file from internal storage -


i have list pdf files stored in internal storage, , have pick them. tried followings:

uidocumentpickerviewcontroller , uidocumentmenuviewcontroller. not expecting:

let docurl = (nsfilemanager.defaultmanager().urlsfordirectory(.documentdirectory, indomains: .userdomainmask).last) as? nsurl var contents = (nsfilemanager.defaultmanager().contentsofdirectoryaturl(docurl!, includingpropertiesforkeys: nil, options: nsdirectoryenumerationoptions.skipshiddenfiles, error: nil)) 

this showing files stored in application memory alone, need of files stored in phone memory

can advise in this?


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -