-(void)cornerRadiusWithRoundingCorners:(UIRectCorner)rounded cornerRadii:(float)corner{
? ? UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:self.bounds byRoundingCorners:rounded cornerRadii:CGSizeMake(corner, corner)];
?? ? CAShapeLayer*maskLayer = [[CAShapeLayeralloc]init];
?? ? maskLayer.frame=self.bounds;
?? ? maskLayer.path= maskPath.CGPath;
?? ? self.layer.mask= maskLayer;
}