//
//  ViewController.m
//  codeScanner
//
//  Created by WZH on 16/3/9.
//  Copyright 漏 2016骞?鐜嬫尟娴? All rights reserved.
//

#import "ViewController.h"
#import "ZHScanView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
//    ZHScanView *scanf = [ZHScanView scanView];
    ZHScanView *scanf = [ZHScanView scanViewWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height - 100)];
    scanf.promptMessage = @"鎮ㄥ彲浠ョ洿鎺ヨ緭鍏ユ垨鑰呴€夋嫨鎵弿浜岀淮鐮?;
    [self.view addSubview:scanf];
    
    [scanf startScaning];
    
    [scanf outPutResult:^(NSString *result) {
        
        NSLog(@"%@",result);
        
    }];

    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com