【问题标题】:How to remove yellow selection highlight?如何删除黄色选择突出显示?
【发布时间】:2020-02-18 09:51:27
【问题描述】:

我在 PDFKit 中以编程方式选择文本,点击后,所选单词以黄色突出显示 2 秒,然后消失。

let wordSelection = page?.selectionForWord(at: info.point)
pdfView.setCurrentSelection(wordSelection, animate: true)

删除此高光或将其替换为 .clear 颜色对我来说是完美的选择。

【问题讨论】:

    标签: ios swift pdf pdfkit


    【解决方案1】:

    发现如果我将animate 属性设置为false,它就会消失。

    pdfView.setCurrentSelection(wordSelection, animate: false)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-05-12
      • 2021-02-03
      • 2021-05-03
      • 2022-07-01
      • 2011-05-30
      • 1970-01-01
      • 2014-02-17
      相关资源
      最近更新 更多