Ios 如何删除黄色选择突出显示?
我在PDFKit中以编程方式选择文本,点击后,所选单词以黄色高亮显示2秒钟,然后消失Ios 如何删除黄色选择突出显示?,ios,swift,pdf,pdfkit,Ios,Swift,Pdf,Pdfkit,我在PDFKit中以编程方式选择文本,点击后,所选单词以黄色高亮显示2秒钟,然后消失 let wordSelection = page?.selectionForWord(at: info.point) pdfView.setCurrentSelection(wordSelection, animate: true) 删除此突出显示或将其替换为.clear color将非常适合。发现如果我将animate属性设置为false,它将消失 pdfView.setCurrentSelection(w
let wordSelection = page?.selectionForWord(at: info.point)
pdfView.setCurrentSelection(wordSelection, animate: true)
删除此突出显示或将其替换为.clear color将非常适合。发现如果我将
animate
属性设置为false
,它将消失
pdfView.setCurrentSelection(wordSelection, animate: false)
发现如果我将
animate
属性设置为false
它将消失
pdfView.setCurrentSelection(wordSelection, animate: false)