PDFPreView.m 651 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // CPDFPreView.m
  3. // PDFViewer
  4. //
  5. // Created by kdanmobile_2 on 2023/1/12.
  6. //
  7. #import "PDFPreView.h"
  8. @implementation PDFPreView
  9. - (instancetype)initWithFrame:(CGRect)frame {
  10. if (self = [super initWithFrame:frame]) {
  11. _documentImageView = [[UIImageView alloc] init];
  12. CALayer *layer = [_documentImageView layer];
  13. layer.borderColor = [[UIColor blackColor] CGColor];
  14. layer.borderWidth = 0.2f;
  15. _preLabel = [[UILabel alloc] init];
  16. _preImageView = [[UIImageView alloc] init];
  17. [self addSubview:_documentImageView];
  18. }
  19. return self;
  20. }
  21. @end