Thursday, April 28, 2011

Reading filenames from iphone application folder

i write some image files in to iphone document folder. then i have to retrieve that files name in an array. please post some code.

From stackoverflow
  • Look at the documentation for NSArray. You'll find methods for reading data from files into arrays in there.

    Jasarien : You can get the path for the Documents directory by using NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); - you then need to append the filename of the file you are trying to read to the end of the path.

0 comments:

Post a Comment