突出显示的选择总是以相同的颜色显示,即使我在PDFView中更改了颜色(我正在使用OSX)。 所以我需要知道为什么以及如何修复这个错误? pdfSelection.color = myColor //a color choise by user
pdfView.highlightedSelections?.append(pdfSelection)
我想绘制一个渐变,在不透明状态下消失。 我看不出绘画效果。试图改变颜色。框架看起来是正确的。为什么不显示这种不透明消失? func createGradient() {
let h = UIScreen.mainScreen().bounds.size.height
let y = collectionView.frame.origin.y + (cellSize() *
我在CAShapeLayer()上画了一些东西。现在我想把它放在另一层。 let layer = CAShapeLayer() // This is the layer I drew something on
let imageView = UIImageView() // The imageView I want to put the layer on
imageView.layer.add