44 lines
971 B
Objective-C
44 lines
971 B
Objective-C
//
|
|
// ScanResultViewController.m
|
|
// LBXScanDemo
|
|
//
|
|
|
|
#import "ScanResultViewController.h"
|
|
|
|
@interface ScanResultViewController ()
|
|
|
|
@property (weak, nonatomic) IBOutlet UIImageView *scanImg;
|
|
@property (weak, nonatomic) IBOutlet UILabel *labelScanText;
|
|
@property (weak, nonatomic) IBOutlet UILabel *labelScanCodeType;
|
|
@end
|
|
|
|
@implementation ScanResultViewController
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
// Do any additional setup after loading the view from its nib.
|
|
if ([self respondsToSelector:@selector(setEdgesForExtendedLayout:)]) {
|
|
|
|
self.edgesForExtendedLayout = UIRectEdgeNone;
|
|
}
|
|
}
|
|
|
|
|
|
- (void)viewWillAppear:(BOOL)animated
|
|
{
|
|
[super viewWillAppear:animated];
|
|
|
|
|
|
if (!_imgScan) {
|
|
|
|
_scanImg.backgroundColor = [UIColor grayColor];
|
|
}
|
|
|
|
_scanImg.image = _imgScan;
|
|
_labelScanText.text = _strScan;
|
|
_labelScanCodeType.text = [NSString stringWithFormat:@"码的类型:%@",_strCodeType];
|
|
}
|
|
|
|
|
|
@end
|