Yes...there is a way to do this. Create an AVAudioPlayer Object.
Code:
#import <AVFoundation/AVAudioPlayer.h>
@interface Example : UIViewController <AVAudioPlayerDelegate>
Code:
NSString *path10 = [[NSBundle mainBundle] pathForResource: @"..." ofType:@"wav"];
NSURL *file10 = [[NSURL alloc] initFileURLWithPath:path10];
AVAudioPlayer *p10 = [[AVAudioPlayer alloc] initWithContentsOfURL:file10 error:nil];
[file10 release];
self.player10 = p10;
[p10 release];
[player10 prepareToPlay];
[player10 setDelegate:self];
Code:
- (IBAction)playSoundAction11
{
[self.player10 play];
}