123456789101112131415161718192021222324252627282930 |
- //
- // CPDFClipView.m
- // PDFViewer
- //
- // Created by kdanmobile_2 on 2022/12/23.
- //
- #import "CPDFClipView.h"
- @implementation CPDFClipView
- - (instancetype)initWithFrame:(CGRect)frame {
- self = [super initWithFrame:frame];
-
- if (self) {
- self.backgroundColor = [UIColor clearColor];
- }
-
- return self;
- }
- - (void)drawRect:(CGRect)rect {
- [super drawRect:rect];
-
- CGContextRef context = UIGraphicsGetCurrentContext();
-
- [self.delegate clipText:context];
- }
- @end
|