UITapGestureRecognizer
点击手势, 可以设置单击,双击,多击,还可以设置使用几根手指, 下面我们学习如何使用它
1.UITapGestureRecognizer的创建
import UIKit
class ViewController: UIViewController {
var label: UILabel?
override func viewDidLoad() {
super.viewDidLoad()
label = UILabel(frame: CGRect(x: 20, y: 20, width: 300, height: 60))
label?.textAlignment = .Center
self.view