// // HeaderFooterAlertViewController.h // PDFViewer // // Created by kdanmobile_2 on 2022/11/16. // #import #import #import #import "CPDFHeaderFooterAddView.h" #import "CPDFHeaderFooterModel.h" #import "CPDFHeaderFooterTextTableView.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; @protocol CPDFModelDataDelegate @optional - (void)changeHeaderFooterModelData:(CPDFHeaderFooterModel *)modelData; - (void)changBatesModelData:(CPDFHeaderFooterModel *)modelData; @end @interface CPDFHeaderFooterAddController : UIViewController - (id)initWithIamge:(UIImage *)image WithSize:(CGSize)size; - (void)initIamge; - (void)initNavigation; - (void)textFieldDidBeginEditing:(UITextField *)textField; - (void)cancelClick:(UIBarButtonItem *)btn; - (void)sliderChange:(UISlider *)slider; - (void)changeLocation:(UISegmentedControl *)sender; - (void)changeAligbment:(UISegmentedControl *)sender; - (void)showPages; - (void)initShowLabel; @property (nonatomic,assign) CGSize size; @property (nonatomic,strong) UIImage *image; @property (nonatomic,assign) PositionRec position; @property (nonatomic,strong) UILabel *showLabel; @property (nonatomic,strong) UIImageView *imageView; @property (nonatomic,strong) CPDFHeaderFooterModel *modelData; @property (nonatomic,weak) id delegate; @end NS_ASSUME_NONNULL_END