效果图
问题1:为button添加点击事件报错
playButton.addTarget(self, action: #selector(playButtonAction), for: UIControlEvents.touchUpInside)
func resetButtonAction() {
}
错误提示
Argument of '#selector' refers to instance method 'playButtonAction()' that is not exposed to Objective-C
Add '@objc' to expose this instance method to Objective-C
@objc func resetButtonAction() {
}