Skip to content

Instantly share code, notes, and snippets.

@wemakeweb
Created September 17, 2012 14:51
Show Gist options
  • Select an option

  • Save wemakeweb/3737824 to your computer and use it in GitHub Desktop.

Select an option

Save wemakeweb/3737824 to your computer and use it in GitHub Desktop.
- (void)pdfViewController:(PSPDFViewController *)pdfController willShowAnnotationView:(UIView <PSPDFAnnotationView> *)annotationView onPageView:(PSPDFPageView *)pageView {
if ([annotationView isKindOfClass:[PSPDFLinkAnnotationView class]]) {
PSPDFLinkAnnotationView *linkAnnotation = (PSPDFLinkAnnotationView *)annotationView;
linkAnnotation.borderColor = [[UIColor blueColor] colorWithAlphaComponent:0];
}
}
@riksof-mrizwan
Copy link

Can you please provide this code in swift with the capability to change border color in all pages of a documents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment