I am new to Iphone.How to create file browser in iphone ?
I wish to show all the files and folders in the iphone.How to do this?
I am new to Iphone.How to create file browser in iphone ? I wish
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unless you are on a jailbroken phone, your app can only access files within its own “sandbox”.
There are three folders your app can access, which contain data specific to your application. Your app will not be able to access file data outside these folders.
With that caveat in mind, you would likely use:
NSFileManagerandNSDirectoryEnumeratorto build a data source to a table viewUITableViewto present the list of files and folders obtained from step 1UINavigationControllerto provide a navigation stack for walking through a hierarchy of folders: a stack ofUITableViewinstancesto browse the list of accessible files and folders within your application’s sandbox.