2
iPod 음악을 중단하지 않고도 앱 내에서 사운드를 재생할 수 있습니까?iPod 음악을 중단하지 않고도 소리를 재생할 수 있습니까?
는 지금은 다음을 사용하고 있지만, 아이팟 음악을
soundPath =[[NSBundle mainBundle] pathForResource:@"mySound" ofType:@"mp3"];
soundURL = [NSURL fileURLWithPath:soundPath];
mySound = [[AVAudioPlayer alloc] initWithContentsOfURL:soundURL error:nil];
[mySound prepareToPlay];
다음
[mySound play];
이 작업은 상당히 번거롭지 만 잘 처리되었습니다. –