在我的收藏夹 DataManager.stationsfavorites 上,当我选择电台时,它不会播放同一电台,而是在一个电台上播放
radioPlayer.station = DataManager.stationsFavorites [indexPath.row] 我尝试将其放置在 radioPlayer.station = DataManager.stations [indexPath.row] 旁边其中一个却不认识另一个
我可以同时运行一个,但不能同时运行
如何在下面的代码中运行这两个函数?
我正在同一ViewController上运行两个tableView
title = ""
let newStation: Bool
if let indexPath = (sender as? IndexPath) {
// User clicked on row, load/reset station
**radioPlayer.station = DataManager.stations[indexPath.row]**
newStation = true
} else {
// User clicked on Now Playing button
newStation = false
}
nowPlayingViewController = nowPlayingVC
nowPlayingVC.load(station: radioPlayer.station, track: radioPlayer.track, isNewStation: newStation)
nowPlayingVC.delegate = self
}
{{1}}