I have a folder with a bunch of images named “Pictures” right inside “Supporting Files”, but when I try to retrieve the files it returns nil, even though I'm sure there are images inside; I try to do it with the following code inside viewDidLoad()
let sourcePath = NSBundle.mainBundle().resourcePath!.stringByAppendingPathComponent("Pictures")
let imgArray = NSFileManager.defaultManager().contentsOfDirectoryAtPath(sourcePath, error: nil)
And when I do this: println(imgArray)
it always prints nil.
Why?? And what should I do?