在PDFView osx中突出显示的选项

问题描述 投票:0回答:1

即使我在PDFView中更改了颜色(我使用的是OSX),突出显示的选项也始终以相同的颜色显示。所以我需要知道为什么以及如何解决这个错误?

pdfSelection.color = myColor //a color choise by user
pdfView.highlightedSelections?.append(pdfSelection)
swift macos quartz-core pdfview
1个回答
0
投票

试试这个:

pdfSelection.color = myColor //a color choise by user
pdfView.highlightedSelections = nil
pdfView.highlightedSelections = [pdfSelection!]
© www.soinside.com 2019 - 2024. All rights reserved.