123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // HeaderFooterDeleteViewController.m
- // PDFViewer
- //
- // Created by kdanmobile_2 on 2022/11/17.
- //
- #import "CPDFHeaderFooterDeleteController.h"
- @interface CPDFHeaderFooterDeleteController ()
- #define PAGENUMBER YES;
- @end
- @implementation CPDFHeaderFooterDeleteController
- - (void)viewDidLoad {
- [super viewDidLoad];
- UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Delete Page Number" message:@"Are you sure delete all pages number" preferredStyle:UIAlertControllerStyleAlert];
-
- UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
- NSDictionary *dict = [[NSDictionary alloc] initWithObjectsAndKeys:@"1",@"delete", nil];
- NSNotification *notification = [NSNotification notificationWithName:@"deleteHeaderFooter" object:nil userInfo:dict];
-
- [[NSNotificationCenter defaultCenter] postNotification:notification];
- }];
-
- UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
- NSLog(@"Cancel Action");
- }];
-
- [alertController addAction:okAction];
- [alertController addAction:cancelAction];
-
- [self presentViewController:alertController animated:YES completion:nil];
- }
- @end
|