playbutton = (UIButton *)sender;
audiostring = [[NSMutableString alloc] init];
audiostring = [Audioarray objectAtIndex:playbutton.tag];
NSError *error;
audioPlayer = [[AVPlayer playerWithURL:[NSURL URLWithString:[audiostring valueForKey:@"url"]]] retain];
[[AVAudioSession sharedInstance] setDelegate: self];
[[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryAmbient error: &error];
[audioPlayer play];
NSLog(@"audio array : %@",audioPlayer);
用于播放单元格中的下一个音频。请告诉我正确的答案。如何播放表格中的音频
这是什么语言? – 2012-07-20 18:06:51
@Erty Objective-C – yms 2012-07-20 19:16:51