CPDFHeaderFooterDeleteController.m 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // HeaderFooterDeleteViewController.m
  3. // PDFViewer
  4. //
  5. // Created by kdanmobile_2 on 2022/11/17.
  6. //
  7. #import "CPDFHeaderFooterDeleteController.h"
  8. @interface CPDFHeaderFooterDeleteController ()
  9. #define PAGENUMBER YES;
  10. @end
  11. @implementation CPDFHeaderFooterDeleteController
  12. - (void)viewDidLoad {
  13. [super viewDidLoad];
  14. UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Delete Page Number" message:@"Are you sure delete all pages number" preferredStyle:UIAlertControllerStyleAlert];
  15. UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
  16. NSLog(@"OK Action");
  17. }];
  18. UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
  19. NSLog(@"Cancel Action");
  20. }];
  21. [alertController addAction:okAction];
  22. [alertController addAction:cancelAction];
  23. [self presentViewController:alertController animated:YES completion:nil];
  24. }
  25. @end