【发布时间】:2020-11-06 03:51:25
【问题描述】:
我使用的是 https://github.com/loregr/LGButton 。我得到了触发功能等的按钮,但是如何使用这个库的加载微调器 UI?一旦我也启用它,它只会显示几毫秒,因为单击按钮时会快速触发该功能
@IBAction func theFunction(_ sender: LGButton) {
let alertView = SCLAlertView()
alertView.addButton("Y button", target: self, selector: #selector(self.generateNewNumber))
alertView.addButton("X Button", target: self, selector: #selector(self.zfunction))
alertView.showSuccess("", subTitle: ""])
}
@IBOutlet var instanceofLGButton: LGButton!
override func viewDidLoad() {
super.viewDidLoad()
navigationController?.interactivePopGestureRecognizer?.isEnabled = true
self.view.backgroundColor = UIColor.black
instanceofLGButton.addTarget(self, action: #selector(self.learning(_:)), for: .touchUpInside)
谢谢。相关部分代码如上。
【问题讨论】:
-
你想像TransitionButton一样在LGButton中显示微调器吗?
标签: ios swift button time delay