Search code examples
objective-cuitableviewnsfilemanager

Populate table view with local files


How can i populate table view with local files. What do i need to use. Will it be possible if i use NSFileManager and UITableView in combination ?


Solution

  • use NSFileManager's directoryContentAtPath to get the list of all the files and directory at a given path. directoryContentAtPath returns NSArray, use the same to populate the table.