我在目标C中绘制方形注释时遇到麻烦。我知道哪里出了问题?
谢谢
PDFAnnotation *annotation = [[PDFAnnotation alloc]initWithBounds:CGRectMake(x, y, 25, 25) forType:PDFAnnotationSubtypeSquare withProperties:nil];
annotation.backgroundColor = [UIColor redColor];
annotation.border.lineWidth = 10;
annotation.color = [UIColor redColor];
PDFPage *page = [pdfView currentPage];
[page addAnnotation:annotation];