title: how to get the remaining time of the song which is played in AVAudioPlayer
body: <p>I am new to iphone. I am working on audio player. I have to show the current time  and remaining time of the song in audioplayer. In video player it will gets as default but in audioplayer it is not getting so that i write a logic for getting current time of the song. The code below is for that</p>
  
  <pre><code>int minutes = (int)audioPlayer.currentTime / 60;
  int seconds = (int)audioPlayer.currentTime % 60;
  startDurationLabel.text = [NSString stringWithFormat:@"%d:%02d",minutes,seconds];
  </code></pre>
  
  <p>here audioPlayer is instance of AVAudioPlayer and startDurationLabel is the label for display the current time of the song.</p>
  
  <p>But I am struggling to get this logic to work and show the remaining time of the song</p>
  
  <p>If any body know this please help me...</p>