直接看代码
private let btnWH = 75.0 //按钮宽高
lazy var btn:UIButton = {
let btn = UIButton(frame: CGRect(x: kScreenWidth - 100, y: 300, width: btnWH, height: btnWH))
btn.setImage(UIImage(named: "testimage"), for: .normal)
btn.addTarget(self, action: #selector(clickSuspendBtnAction),