1
AVAudioPlayer * myExampleSound;음악이 끝난 후 자동으로 재생되도록 어떻게 재생합니까?
NSString *myExamplePath = [[NSBundle mainBundle] pathForResource:@"myaudiofile" ofType:@"caf"];
myExampleSound =[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:myExamplePath] error:NULL];
myExampleSound.delegate = self;
[myExampleSound play];
myExampleSound를 재생하여 어떻게 끝까지 재생할 수 있습니까? 위의 코드를 사용하고 있습니다.
누구든지 도와주세요.