代码之家  ›  专栏  ›  技术社区  ›  Kevin Sylvestre

PDFKIT/PDFVIEW禁用与表单批注的交互

  •  3
  • Kevin Sylvestre  · 技术社区  · 7 年前

    对于一个 PDFDocument 包含注释的 widgetFieldType 属于 PDFAnnotationWidgetSubtype.text PDFAnnotationWidgetSubtype.button 是否可以为这些注释禁用用户交互(即单击复选框不会导致其切换)?

    1 回复  |  直到 7 年前
        1
  •  1
  •   Aris    7 年前

            pdfView.document?.page(at: 0)?.annotations.filter {
                $0.widgetFieldType == PDFAnnotationWidgetSubtype.button
                }.forEach {
                    $0.shouldDisplay = false
                }
            }