12345678910111213141516171819202122232425262728293031 |
- //
- // CPDFPreView.m
- // PDFViewer
- //
- // Created by kdanmobile_2 on 2023/1/12.
- //
- #import "PDFPreView.h"
- @implementation PDFPreView
- - (instancetype)initWithFrame:(CGRect)frame {
-
- if (self = [super initWithFrame:frame]) {
- _documentImageView = [[UIImageView alloc] init];
-
- CALayer *layer = [_documentImageView layer];
- layer.borderColor = [[UIColor blackColor] CGColor];
- layer.borderWidth = 0.2f;
-
- _preLabel = [[UILabel alloc] init];
-
- _preImageView = [[UIImageView alloc] init];
-
- [self addSubview:_documentImageView];
- }
-
- return self;
- }
- @end
|