Marty
Marty

Reputation: 6194

How to init an array with all files in a group in XCode?

I have a group/folder in my XCode iOS project that has a lot of small sound files, and I don't want to have to type all of them out individually to get them into an array, so is there a way to do it? With bundles or something?

Upvotes: 0

Views: 176

Answers (1)

Caleb
Caleb

Reputation: 125007

Look at NSBundle's -pathsForResourcesOfType:inDirectory: method.

Upvotes: 1

Related Questions