1 文件放在工程文件中
NSString *videoPath1 = [[NSBundle mainBundle]pathForResource:@"2" ofType:@"mp3"];
NSURL *recordedTmpFile = [NSURL fileURLWithPath:videoPath1];
2文件放在bundle文件中 再放在工程文件里面
NSString *videoPath1 = [[NSBundle mainBundle]pathForResource:@"sound" ofType:@"bundle"];
NSString *mp4string= [videoPath1 stringByAppendingPathComponent:@"1.mp3"];
网友评论