// 取消按钮
let cancelBtn = UIButton.init(frame: CGRect.init(x: 0, y: 0, width: 44, height: 44))
cancelBtn.center = CGPoint.init(x: 30, y: 22)
cancelBtn.titleLabel?.font = UIFont.systemFont(ofSize: 16)
cancelBtn.setTitle("取消", for: .normal)
cancelBtn.addTarget(self, action: #selector(cancelAction), for: .touchUpInside)
cancelBtn.setTitleColor(appTintColor, for: .normal)
self.view.addSubview(cancelBtn)
func cancelAction() {
}
// 点击任何界面
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
}