How to change image to previous state if other row is selected in TableView didSelectRowAtIndexPath function?
问题 So I have dynamic tableview and each row have play image. If I select the row image will change to pause icon. But what if I select another row, I need the image on previously selected row to have play icon again. How to handle such functionality? All I have is: class ViewController: UIViewController { var stations = [ (stationIcon: "rr_icon", stationName: "Radio1", urlString: "http://.._320", isPlaying: false), (stationIcon: "mm_icon", stationName: "Record2", urlString: "http://../_320",