Get current position within an audiofile
<p>Using AVAudioPlayer to play audiofile now within the audiofile how i can track that when audioplayer reaches at the specific currenttime or position of the audio file and then it should update viewcontroller.</p>

<p>Here is my code but it is not working cause not updating viewcontrollers.</p>

<pre><code>float seconds = audioPlayer.currentTime;

if (seconds == 11.0){
    [self performSelector:@selector(FirstViewController) withObject:nil]; 
} else {
    if (seconds == 23.0){
        [self performSelector:@selector(secondViewController) withObject:nil];  
    }
}

-(void)FirstViewController {
    FirstViewController *viewController = [[FirstViewController alloc] init];
    viewController.view.frame = CGRectMake(0, 0, 320, 480);
    [self.view addSubview:viewController.view];
    [self.view addSubview:toolbar];
    [viewController release];
}
</code></pre>

<p>Pls help</p>
