Swift 学习之 button 点击事件传递触摸对象踩的坑
2016-10-26 本文已影响22人
马爷
<pre>
//点击事件
button.addTarget(self, action:
selector(SwiftTimeSelectViewController.makeSureSelectTime(_:)), for: UIControlEvents.touchUpInside)
//点击事件的方法
func makeSureSelectTime(_ button:UIButton) -> Void {
}
</pre>