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);
For playing next audio from cell. Please tell me correct answer.
You can use accessory view of the cell and attach a play button there. This Tutorial
explains how to create a custom accessory view which is a button actually,so it has a selector.Following this tutorial you can easily know on which cell the button has been pressed.So, user can press the play button of specific cell.Then take the name of the file associated with that cell and apply the things you learn from here to play your audio in background. Best of luck!