1.加载音乐文件时,如果只修改后缀名,不转换音频格式
2.加载文件的时候名字不对
3.往工程添加文件的时候,没加关系。点击文件把target memberShip勾选上
NSURL *soundUrl = [[NSURLalloc] initFileURLWithPath:[[NSBundlemainBundle] pathForResource:[self.chooseSoundTableViewcellForRowAtIndexPath:indexPath].textLabel.textofType:@"mp3"]];
[self.soundPlayerinitWithContentsOfURL:soundUrl error:nil];
[self.soundPlayersetNumberOfLoops:self.soundTimesControl.selectedSegmentIndex];
[self.soundPlayerprepareToPlay];
[self.soundPlayerplay];