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, чтобы он автоматически воспроизводился после его завершения?
Я использую приведенный выше код.
Кто-нибудь, пожалуйста, помогите.