123456789101112131415161718192021222324252627 |
- //
- // UIView+Category.m
- // MSYOUPAI
- //
- // Created by admin on 2022/3/2.
- // Copyright © 2022 MS. All rights reserved.
- //
- #import "UIView+Category.h"
- #import "YYKit.h"
- @implementation UIView (Category)
- // 设置圆角
- - (void)ms_radius:(CGFloat)radius{
- if (radius>0){
- self.layer.cornerRadius = radius;
- self.layer.masksToBounds = YES;
- }else{
- self.layer.cornerRadius = radius;
- self.layer.masksToBounds = NO;
- }
- }
- @end
|