2011-04-26 36 views

回答

0

嘗試

NSString path = [[NSBundle mainBundle] bundlePath]; 
NSArray *files = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:NULL]; 

這應該給你的.app文件夾中的內容。如果你在子文件夾中有文件,你必須檢查返回的文件是文件還是文件夾,並且遞歸地獲取文件