12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- //
- // HeaderFooterAlertViewController.h
- // PDFViewer
- //
- // Created by kdanmobile_2 on 2022/11/16.
- //
- #import <UIKit/UIKit.h>
- #import <ComPDFKit/CPDFHeaderFooter.h>
- #import <ComPDFKit/ComPDFKit.h>
- #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 <NSObject>
- @optional
- - (void)changeHeaderFooterModelData:(CPDFHeaderFooterModel *)modelData;
- - (void)changBatesModelData:(CPDFHeaderFooterModel *)modelData;
- @end
- @interface CPDFHeaderFooterAddController : UIViewController <UITableViewDelegate,UITableViewDataSource,UITextFieldDelegate>
- - (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<CPDFModelDataDelegate> delegate;
- @end
- NS_ASSUME_NONNULL_END
|