I have list of .mp3 files in my Resources folder within an iOS 7.2 XCode project.I have add all .mp3 files in to one array,
Used Below code :
NSArray *array = [[NSBundle mainBundle] pathsForResourcesOfType:@".mp3" inDirectory:@"Resources"];
The "Resources" folder won't actually exist in the app bundle. That's just a group in your Xcode project. And don't add the "." to the type.
Your line of code should be:
NSArray *array = [[NSBundle mainBundle] pathsForResourcesOfType:@"mp3" inDirectory:nil];