Add a audio framwork AVFoundation using
#import and use code below to play a sound
########################### #########
AVAudioPlayer *myExampleSound;
NSString *myExamplePath = [[NSBundle mainBundle] pathForResource:@"horror" ofType:@"wav"];
myExampleSound =[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:myExamplePath] error:NULL];
myExampleSound.delegate = self;
[myExampleSound play]; //play sound
//[myExampleSound stop]; you can stop like this
###########################################################
When you add a AVFoundation framwork, make sure to use absolute path.. Relative path is by default there and that gives compile error ..