-(void)updateElapsedTime
{
if (_audioPlayer)
{
if ([_audioPlayer isPlaying]==YES)
{
_ProgressSeekSlider.value=[_audioPlayer currentTime] / [_audioPlayer duration];//UISLider
}
[_StartTimeLbl setText:[NSString stringWithFormat:@"%@",[self formatTime:[_audioPlayer currentTime]]]];//Start Time Label which shows Time elapsed of song
[_EndTimeLbl setText:[NSString stringWithFormat:@"%@",[self formatTime:[_audioPlayer duration]]]];//Label which shows the total song duration
}
[self updatePlayPauseImage];
[self updateSongName];
[self updateSeekBar];
}
当我拖动ProgreeSeekSlider转发一首歌时,它会回到过去的时间,但不会寻找这首歌。 我希望这个滑块也能找到这首歌