NSString * path=[[NSBundle mainBundle]pathForResource:@"one" ofType:@"mp3"];
起初得到的值是NIL, 后来发现原来mp3,wma 这些文件没有加到copy resource
Go to : Target -> "Build Phases" -> "copy bundle Resources"Then add that particular file here.
NSString * path=[[NSBundle mainBundle]pathForResource:@"one" ofType:@"mp3"];
起初得到的值是NIL, 后来发现原来mp3,wma 这些文件没有加到copy resource
Go to : Target -> "Build Phases" -> "copy bundle Resources"Then add that particular file here.