Array of NSStrings from filenames within a folder?
问题 I'm trying to create an array of NSStrings of the contents of a folder that I've dragged into my project... but when I count the items in the array afterwards, it's always comes back with 0; So, my folder in my project looks like this -Cards -Colors Blue.png Green.png Orange.png Yellow.png Purple.png Black.png And my code which tries to get this list of files (the color pngs) is NSError *error = nil; NSString *pathString = [[NSString alloc] init]; pathString = [[NSString alloc] initWithString