省钱达人

ScanResultViewController.m 807B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // ScanResultViewController.m
  3. // LBXScanDemo
  4. //
  5. // Created by lbxia on 15/11/17.
  6. // Copyright © 2015年 lbxia. All rights reserved.
  7. //
  8. #import "ScanResultViewController.h"
  9. @interface ScanResultViewController ()
  10. @property (weak, nonatomic) IBOutlet UIImageView *scanImg;
  11. @property (weak, nonatomic) IBOutlet UILabel *labelScanText;
  12. @end
  13. @implementation ScanResultViewController
  14. - (void)viewDidLoad {
  15. [super viewDidLoad];
  16. // Do any additional setup after loading the view from its nib.
  17. if ([self respondsToSelector:@selector(setEdgesForExtendedLayout:)]) {
  18. self.edgesForExtendedLayout = UIRectEdgeNone;
  19. }
  20. }
  21. - (void)viewWillAppear:(BOOL)animated
  22. {
  23. [super viewWillAppear:animated];
  24. _scanImg.image = _imgScan;
  25. _labelScanText.text = _strScan;
  26. }
  27. @end