我已经尽一切努力尝试修复它,我在其他类似问题中阅读过,但没有任何效果。
#import "ViewController.h"
//sound
@implementation SoundappViewController
-(IBAction)play; {
CFBundleRef mainBundle = CFBundleGetMainBundle();
CFURLRef soundFileURLRef;
soundFileURLRef = CFBundleCopyResourceURL(mainBundle, (CFStringRef) @"app 3", CFSTR ("m4a"), NULL);
UInt32 (soundID);
AudioServicesCreateSystemSoundID(soundFileURLRef, &soundID);
AudioServicesPlaySystemSound(soundID);
@end // Here i get the error Unexpected @ in program