Slider is not working while playing the song
<p>I am new to Iphone,I am facing an issue that is,I have slider which is used for showing the current time of the song which is playing for that,I have created one timer and for every one second i am calling one method that is shown in below</p>

<pre><code>- (void)sliderTintChanged:(id)sender {
    @try 
    {
        slider.maximumValue = audioDurationInSeconds;
        NSLog(@"audioPlayer.currenttime is %f",audioPlayer.currentTime);
        slider.value = audioPlayer.currentTime;
        NSLog(@"slider.value is %f",slider.value);
       }@catch(NSException * e){
             NSLog(@"Exception At: %s %d %s %s %@",__FILE__,__LINE__,__PRETTY_FUNCTION__,__FUNCTION__,e);}@finally{}               
       }
</code></pre>

<p>here in the above code is running in the simulator its working fine for every second slider tint is changing to the current value of the song,but if in the device its not working.In device I will get the audioplayer.currentTime but if i can assign that value to the slider.value and then print that slider.value it shows 0.00000.So,slider tint is not moving here...What is the fault in my code here.
If any body knows please help me....</p>
