How do I get an NSArray of filenames of all files in a given directory in my app?

If you want the folder to be part of the App bundle, you need to create a folder reference inside the Resources group, instead of a group (it will show up in Xcode as a blue folder as opposed to the yellow one) To do this, you drag the folder from Finder and select folder reference when prompted Once you have that, you should be able to get the contents of the folder with something like: NSFileManager defaultManager directoryContentsAtPath: NSBundle mainBundle resourcePath stringByAppendingString:@"YourFolder".

If you want the folder to be part of the App bundle, you need to create a folder reference inside the Resources group, instead of a group (it will show up in Xcode as a blue folder as opposed to the yellow one). To do this, you drag the folder from Finder and select folder reference when prompted. Once you have that, you should be able to get the contents of the folder with something like: NSFileManager defaultManager directoryContentsAtPath: NSBundle mainBundle resourcePath stringByAppendingString:@"YourFolder".

What I want to do seems simple enough: Get an array of filenames in a given "directory" on my app. Why can I fill my NSArray just with one object? Why can´t I fill my NSArray?

Where is my mistake? He always just fill one object/image to the nsarray. Parsing text file into NSArray but how do I extract it?

My question is how can I extract this text and update a label in a Scrollview? This actually could be a multipart question.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions