InteractivePlayerView 是可以自定义的 iOS 音乐播放视图。
使用示例:
@IBOutlet var ipv: InteractivePlayerView! // set delegation self.ipv!.delegate = self // duration of music self.ipv.progress = 120.0 // start - stop player self.ipv.start() self.ipv.stop() /* InteractivePlayerViewDelegate METHODS */ func actionOneButtonTapped(sender: UIButton, isSelected: Bool) { println("ActionOneButton tapped") } func actionTwoButtonTapped(sender: UIButton, isSelected: Bool) { println("ActionTwoButton tapped") } func actionThreeButtonTapped(sender: UIButton, isSelected: Bool) { println("ActionThreeButton tapped") }