CPDFBatesDeleteViewController.m 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. //
  2. // BatesDeleteViewController.m
  3. // PDFViewer
  4. //
  5. // Created by kdanmobile_2 on 2022/11/17.
  6. //
  7. #import "CPDFBatesDeleteViewController.h"
  8. @interface CPDFBatesDeleteViewController ()
  9. @end
  10. @implementation CPDFBatesDeleteViewController
  11. - (void)viewDidLoad {
  12. [super viewDidLoad];
  13. // Do any additional setup after loading the view.
  14. UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Delete Bates" message:@"Are you sure delete all Bates" 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