除了要取消的双击外,我想阻止与用户的交互。 是否可以将 isUserInteractionEnabled = false 和例外规则放在我的双击行下面?
style="@style/Widget.MaterialComponents.BottomAppBar"
-
override func viewDidLoad() {
super.viewDidLoad()
let tapGR = UITapGestureRecognizer(target: self, action: #selector(PostlistViewController.handleTap(_:)))
tapGR.delegate = self
tapGR.numberOfTapsRequired = 2
view.addGestureRecognizer(tapGR)
}
谢谢!