I\'m trying to stop activityIndicator when AVPlayer start playing music, and also start activityIndicator when again AVPlayer start (loading, buffering). It little bit works, th
Well in your code, whenever a cell is pressed you have activityView.stopAnimating()
. so no matter what, either the animation will start OR stop on click, depending if sender.selected == false
So I think if you remove activityView.stopAnimating()
then it will not stop animating so early. It's kind of hard to read your question and code as I am not sure exactly where the output is coming from.