Last active
October 1, 2015 18:07
-
-
Save steipete/2034768 to your computer and use it in GitHub Desktop.
simple example how to re-color the link annotations on PSPDFKit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// simple example how to re-color the link annotations | |
- (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.7f]; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment