效果图
QQ20180316-115847-HD.gif问题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() {
}
网友评论