0


I created a app that is a music player.
I put UITableView in main screen and when user click a cell, New ViewController open and in it, I put pause and play and progress bar and other thing.
But when i back to tableview and select that cell again, progress bar and other thing value is 0.
How can i fix that ?
i Use How to use AVPlayer in multiple view and resume controls? to play song.

Community
  • 1
  • 1

1 Answers1

0

You just need to make a judgment in didselect,if willPlay == playing, just do pushNextController else loadData And pushNextController

pro_cookie
  • 11
  • 3