// // HeaderFooterAlertViewController.h // PDFViewer // // Created by kdanmobile_2 on 2022/11/16. // #import #import #import #import "CPDFHeaderFooterAddView.h" #import "CPDFHeaderFooterModel.h" #import "CPDFHeaderFooterTextTableView.h" #import "CPDFPageFomatModel.h" #import "Masonry.h" NS_ASSUME_NONNULL_BEGIN #define kFormat @"^[ ]+$" typedef enum CGLocation { kHeader = 0, kFooter, }CGLocation; typedef enum CGAligment { kLeft = 0, kCenter, kRinght, }CGAligment; typedef struct PositionRec { CGLocation location; CGAligment aligment; }PositionRec; @interface CPDFHeaderFooterAddController : UIViewController - (id)initWithIamge:(UIImage *)image WithSize:(CGSize)size; @property (nonatomic,assign) CGSize size; @property (nonatomic,strong) UIImage *image; @property (nonatomic,assign) PositionRec position; @property (nonatomic,strong) CPDFHeaderFooterAddView *headerFooterview; @property (nonatomic,strong) UILabel *showLabel; @property (nonatomic,strong) CPDFHeaderFooterModel *modelData; @property (nonatomic,strong) UIImageView *imageView; @property (nonatomic,strong) CPDFHeaderFooterTextTableView *pageFormat; @property (nonatomic,strong) NSMutableArray *dataArray; @end NS_ASSUME_NONNULL_END