- (void)viewDidLoad {
SystemSoundID ReelStopSound;
NSString *soundPath = [[NSBundle mainBundle] pathForResource:@"spin" ofType:@"mp3" ];
CFURLRef soundURL = (CFURLRef)[NSURL fileURLWithPath:soundPath];
AudioServicesCreateSystemSoundID(soundURL, &ReelStopSound);
AudioServicesPlaySystemSound(ReelStopSound);
[super viewDidLoad];
}
このアプリをシミュレーターで実行すると、spin.mp3 が再生されますが、iPad ではそうではありません!!