Swift 学习之 button 点击事件传递触摸对象踩的坑

//点击事件
button.addTarget(self, action:

selector(SwiftTimeSelectViewController.makeSureSelectTime(_:)), for: UIControlEvents.touchUpInside)

//点击事件的方法
func makeSureSelectTime(_ button:UIButton) -> Void {

}

你可能感兴趣的:(Swift 学习之 button 点击事件传递触摸对象踩的坑)