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