Hi all,
I am totally new at this and am hoping to get my first simple app on to the app store but need some assistance if possible.
This is part of my .m file and what I'm hoping to do is play a sound whose filename matches the button id
-(IBAction)playSounds

id)sender {
CFBundleRef mainBundle = CFBundleGetMainBundle();
CFURLRef soundFileURLRef;
soundFileURLRef = CFBundleCopyResourceURL(mainBundle, (CFStringRef) @"0", CFSTR ("mp3"), NULL);
UInt32 soundID;
AudioServicesCreateSystemSoundID(soundFileURLRef, &soundID);
AudioServicesPlaySystemSound(soundID);
NSLog(@"The button id is: %i", [sender tag]);
The sound will play (currently 0.mp3) but in the CFStringRef part I would like it to play the relevant sound. There are 8 buttons and 8 sounds that go with them.
Like I say, a pointer in the right direction or a fix to this would be beneficial

Many thanks,
Rob