I want to add Note Annotation into PDF file by using PDFKit.
But it doesn't work when I using PDFAnnotationTextIconType/iconType to select the display icon.
below is my code.
PDFAnnotation* annotation = [[PDFAnnotation alloc] initWithBounds:bounds forType:PDFAnnotationSubtypeText withProperties:nil];
annotation.color = UIColor.blueColor;
annotation.modificationDate = [NSDate date];
annotation.iconType = kPDFTextAnnotationIconInsert;
annotation.contents = text;
[page addAnnotation:annotation];
is there any step that i missed?