//
//  HelpViewController.m
//  Lighting
//
//  Created by mac on 16/5/30.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "HelpViewController.h"
@interface HelpViewController ()
@end
@implementation HelpViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initView];
    
}

-(void)initView
{
    
    //点击手势
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(DismissScreenView:)];
    tap.delegate = self;
    tap.cancelsTouchesInView = NO;
    [[UIApplication sharedApplication].keyWindow addGestureRecognizer:tap];
}
//取消当前页面点击手势
-(void)DismissScreenView:(UITapGestureRecognizer*)sender{
//    CGPoint point = [sender locationInView:self.view];
            if (self) {
            [self.view removeFromSuperview];
        }
   
}

@end
