我的代码在iOS 12的最新版本中有效,但在iOS 13之后,此代码无法调用选择器我在iOS 13中使用UIGestureRecognizerDelegate
这是我的代码
let panGest = UIPanGestureRecognizer(target: self, action: #selector(self.handleTap(_:)))
panGest.delegate = self
txtVw.addGestureRecognizer(panGest)
这是我让txtVw = subVws为! UITextView,txtVw = subVws as! UITextView
我使用了此代码:
let panGest = UIPanGestureRecognizer(target: self, action: #selector(self.handleTap(_:)))
self.view.addGestureRecognizer(panGest)
它的工作,但我有一个子视图,因为子视图不起作用,请致电!!
不是调用self.handleTap或gestureRecognizer(_:shouldRecognizeSimultaneouslyWith:)
我的代码在iOS 12的最新版本中有效,但是在iOS 13之后,此代码无法调用选择器,我为iOS 13使用了UIGestureRecognizerDelegate,这是我的代码,让panGest = UIPanGestureRecognizer(target:...
这是您想要的吗?