//
//  dataGatherViewController.m
//  Open
//
//  Created by 看看智能 on 2017/12/29.
//  Copyright © 2017年 黄江涛 . All rights reserved.
//

#import "dataGatherViewController.h"
#import "LoginVC.h"
#import "chooseAddressViewController.h"

@interface dataGatherViewController ()

@end

@implementation dataGatherViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"数据采集";
    self.personageGather.userInteractionEnabled = YES;
    self.enterpriseGather.userInteractionEnabled = YES;
    UITapGestureRecognizer * PrivateLetterTap=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(perosns)];
    
    UITapGestureRecognizer * PrivateLetterTap_2=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(enterprise)];
    [self.personageGather addGestureRecognizer:PrivateLetterTap];
      [self.enterpriseGather addGestureRecognizer:PrivateLetterTap_2];
}

-(void)perosns{
//    
    if([[NSUserDefaults standardUserDefaults] boolForKey:@"firstlog"]){
        UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
        chooseAddressViewController*once  = [sb instantiateViewControllerWithIdentifier:@"chooseAddressViewController"];
        once.hidesBottomBarWhenPushed =YES;
        [self.navigationController pushViewController:once animated:YES];
    }else
    {
        
        [[NSNotificationCenter defaultCenter]postNotificationName:KKSBJumpLoginVCNotificationName object:nil];
    }
    
//    if([[NSUserDefaults standardUserDefaults] boolForKey:@"firstlog"]){
////
//        FirthlyViewController*once  = [FirthlyViewController sharedInstance];
//        once.hidesBottomBarWhenPushed =YES;
//        [self.navigationController pushViewController:once animated:YES];
//    }else
//    {
    
//    UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
// signatureNameViewController*logVC =   [sb instantiateViewControllerWithIdentifier:@"signatureNameViewController"];
//        logVC.hidesBottomBarWhenPushed =YES;
//        if(![self.navigationController.topViewController isKindOfClass:[logVC class]]) {
//            [self.navigationController pushViewController:logVC animated:YES];
//        }
//    }
    
    
    
    
    

}
-(void)enterprise{

    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}



@end
