Following my program shows contents of Documents directory and is displayed in a tableView . But the Documents directory contains some directories , some audio , some video , an
Look at the NSURL
class. You can for example see if the url is a file url by saying isFileUrl
.
Additionally you can get the last component of the url (usually the file name) by doing:
NSString *filename = [[url path] lastPathComponent];
These can help you do what you need, but more importantly look at the NSURL
documentation.