//选定一块区域,设置不同的透明度
//初始化 并创建 Rect
UIBezierPath *path = [UIBezierPath bezierPathWithRect:CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height)];
//指定BezierPath 的活动区域
[path appendPath:[[UIBezierPath bezierPathWithRoundedRect:CGRectMake(_boxView.frame.origin.x + 1, _boxView.frame.origin.y + 1, _boxView.frame.size.width, _boxView.frame.size.height) cornerRadius:0] bezierPathByReversingPath]];
//初始化layer
CAShapeLayer *shapeLayer = [CAShapeLayer layer];
//属性设置
shapeLayer.backgroundColor = [UIColor colorWithWhite:1.000 alpha:0.090].CGColor;
shapeLayer.path = path.CGPath;
[backVIew.layer setMask:shapeLayer];