我想知道macOS中是否有一个类似于grep -r <target-string>Linux中的命令可以列出<target-string>当前目录下的文件(包括子目录中的文件)中包含的所有行。
谢谢!
My code works in iOS 12. But after upgrading to iOS 13, it does not work.
let pinPointRecognizer = UITapGestureRecognizer(target: self, action: #selector(self.pinPoint(sender:)))
pinPointRecognizer.numberOfTapsRequired = 1
self.pdfView.addGestureRecognizer(pinPointRecognizer)
Run Code Online (Sandbox Code Playgroud)
I have tried adding the pinPointRecognizer.numberOfTouchesRequired = 2 and it can trigger pinPoint() function. But I want to trigger pinPoint() in a single tap.
Is this behaviour a bug that will be fixed in the future iOS version? Is there a workaround to fix this?
Thanks!
Updated:
Thank you all for your reply! …