_alphaView = [[UIViewalloc]initWithFrame:self.view.bounds];
_alphaView.backgroundColor = [[UIColorblackColor]colorWithAlphaComponent:0.7];
UIBezierPath *path = [UIBezierPathbezierPathWithRect:_alphaView.frame];
[path appendPath:[[UIBezierPathbezierPathWithRoundedRect: CGRectMake((UIScreenMainScreenWidth -200) * 0.5, (UIScreenMainScreenHeight -200) * 0.5 -100, 200,200) cornerRadius:0]bezierPathByReversingPath]];
CAShapeLayer *shapeLayer = [CAShapeLayerlayer];
shapeLayer.path = path.CGPath;
[_alphaView.layersetMask:shapeLayer];
[self.viewaddSubview:_alphaView];