PreviewSingleViewController.m 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // PreviewSingleViewController.m
  3. // LenzCameraNativeModuleForRN
  4. //
  5. // Created by 王昭威 on 2023/1/31.
  6. //
  7. #import "PreviewSingleViewController.h"
  8. #import "OperationNodeProtocol.h"
  9. @interface PreviewSingleViewController ()
  10. @end
  11. @implementation PreviewSingleViewController
  12. - (void)setImage:(UIImage *)image{
  13. _image = image;
  14. self.imageView.image = image;
  15. }
  16. - (void)backButtonTouchUpInside:(id)sender{
  17. [self dismissViewControllerAnimated:NO completion:^{
  18. [self.singleModeNode clear];
  19. }];
  20. }
  21. - (void)saveButtonTouchUpInside:(id)sender{
  22. [self dismissViewControllerAnimated:NO completion:^{
  23. [self.singleModeNode save];
  24. }];
  25. }
  26. - (void)viewDidLoad {
  27. [super viewDidLoad];
  28. // Do any additional setup after loading the view.
  29. self.imageView.image = self.image;
  30. }
  31. /*
  32. #pragma mark - Navigation
  33. // In a storyboard-based application, you will often want to do a little preparation before navigation
  34. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  35. // Get the new view controller using [segue destinationViewController].
  36. // Pass the selected object to the new view controller.
  37. }
  38. */
  39. @end