UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:self.checkBtn.bounds byRoundingCorners:UIRectCornerTopRight | UIRectCornerBottomRight cornerRadii:CGSizeMake(20, 20)];
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
maskLayer.frame = self.checkBtn.bounds;
maskLayer.path = maskPath.CGPath;
self.checkBtn.layer.mask = maskLayer;