29,043
社区成员
发帖
与我相关
我的任务
分享var statusPrinter: UIButton?
statusPrinter = UIButton(frame: CGRect(x: 340, y: Int(statusBarHeight), width: myStatusBarHeight, height: myStatusBarHeight))
statusPrinter!.setImage(UIImage(named: "PrinterOFF"), for: .normal)
self.view.addSubview(statusPrinter!)
statusPrinter?.addTarget(self, action: #selector(jumpToBlueTooth), for: .touchUpInside)