【发布时间】:2018-02-12 09:42:17
【问题描述】:
可以为 PDFAnnotation 添加 GestureRecognizer 或设置触摸
func setDocumentAnnotation() {
let anotation:PDFAnnotation = PDFAnnotation(bounds: CGRect(x: pointX, y: pointY, width: pointW, height: pointH), forType: .highlight, withProperties: nil)
anotation.color = .yellow
anotation.endLineStyle = .circle
guard let page = pdfView.currentPage else {return}
page.addAnnotation(anotation)
}
@objc func annotationTapping(_ sender: UITapGestureRecognizer){
print("------- annotationTapping ------")
}
【问题讨论】:
标签: swift4 ios11 pdfkit pdf-annotations