#import "SoundEffect.h"
// init sound
NSBundle *mainBundle = [NSBundle mainBundle];
SoundEffect *tapSound = [[SoundEffect alloc] initWithContentsOfFile:[mainBundle pathForResource:@"tap_snd" ofType:@"caf"]];
// play sound
[tapSound play];
#import "SoundEffect.h"
// init sound
NSBundle *mainBundle = [NSBundle mainBundle];
SoundEffect *tapSound = [[SoundEffect alloc] initWithContentsOfFile:[mainBundle pathForResource:@"tap_snd" ofType:@"caf"]];
// play sound
[tapSound play];