PDFWatermarkEditView.m 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // CPDFEditView.m
  3. // PDFViewer
  4. //
  5. // Created by kdanmobile_2 on 2022/12/26.
  6. //
  7. #import "PDFWatermarkEditView.h"
  8. @implementation PDFWatermarkEditView
  9. - (instancetype)initWithFrame:(CGRect)frame {
  10. self = [super initWithFrame:frame];
  11. if (self) {
  12. _editTableView = [[UITableView alloc] initWithFrame:self.bounds style:UITableViewStylePlain];
  13. _editTableView.backgroundColor = [UIColor systemGrayColor];
  14. _editTableView.rowHeight = 50;
  15. _editTableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
  16. _editTableView.tableFooterView = [[UIView alloc] init];
  17. [_editTableView setEditing:YES animated:YES];
  18. _editTableView.allowsMultipleSelection = NO;
  19. _editTableView.allowsSelectionDuringEditing = NO;
  20. _editTableView.allowsMultipleSelectionDuringEditing = NO;
  21. [self addSubview:_editTableView];
  22. self.backgroundColor = [UIColor purpleColor];
  23. }
  24. return self;
  25. }
  26. @end