小编yso*_*ng4的帖子

macOS 终端中是否有一个命令可以在当前目录(包括子目录)下的所有文件中递归搜索某个字符串?

我想知道macOS中是否有一个类似于grep -r <target-string>Linux中的命令可以列出<target-string>当前目录下的文件(包括子目录中的文件)中包含的所有行。

谢谢!

截屏

macos terminal grep

5
推荐指数
0
解决办法
6927
查看次数

Add a tap gesture recognizer to PDFView in iOS 13

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! …

uitapgesturerecognizer ios-pdfkit ios13

5
推荐指数
1
解决办法
358
查看次数