Hi,
I'm new at board and also sdk...
I would like to choose file from the pickerview and play by button. I write that code but not working.. please help me to fix it.. file names are 0.caf , 1.caf, 2.caf...
- (void)pickerView

UIPickerView *)pickerView didSelectRow

NSInteger)row inComponent

NSInteger)component{
NSString *path = [[NSBundle mainBundle] pathForResource:row ofType:@"caf"];
NSURL *file = [[NSURL alloc] initFileURLWithPath

ath];
AVAudioPlayer *p = [[AVAudioPlayer alloc] initWithContentsOfURL:file error:nil];
[file release];
self.player = p;
[p release];
[player prepareToPlay];
[player setDelegate:self];
}