i created a music player with previous and next functionality in my app.i want to impliment song playback slider. how to do this?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
Use a
UISlider
setting the maxValue to the current playing song duration (in seconds) and the minValue to 0.Assuming that you're using an
MPMusicPlayerController
use thecurrentPlaybackTime
to get the current time of the playing track and use that value to update the slider each second