I’m making an app that allows the user to create files (html) and edit / view them. The files are save in the Documents folder of the app. I’d like to know if there is any good way to display all the files and folders in a UITableView.
Also how would you pass on the user’s selection to the text view to be read? I know it would some how get the row id and pass on the name were the function could load the file…
will give you an array of the file names as NSString in the documents directory, then you just use it as your data for the table view. when a file is selected, you can use
NSMutableData‘sinitWithContentsOfFilemethod with the path as the variable to get aNSMutableDataobject to pass to your editor.