1. 項目文件列表右擊-->Add Files to -->選擇要添加的資源文件,如test.mp4
2. 取路徑:NSString *path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"mp4"];
3. 轉換爲字符串:char *szpath= [path UTF8String];
4. 打印LOG:NSLog(@"path: %s",[path UTF8String]);
5. 也可使用C語言打印:printf("%s\r\n", [path UTF8String]);