PDF注解广场

时间:2019-10-07 20:50:52

标签: ios objective-c pdfkit

我在目标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];

0 个答案:

没有答案