728x90
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:self.myview.bounds byRoundingCorners:(UIRectCornerTopLeft | UIRectCornerTopRight) cornerRadii:CGSizeMake(25.0f, 25.0f)];
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
maskLayer.frame = self.myview.bounds;
maskLayer.path = maskPath.CGPath;
self.myview.layer.mask = maskLayer;
728x90
'iOS > Objective-C' 카테고리의 다른 글
UIView에 그라데이션 적용하기 (0) | 2022.04.01 |
---|---|
스트링 인터닝(String Interning) (0) | 2021.12.15 |
Push Notification (0) | 2021.12.06 |
_myView vs. self.myView (0) | 2021.11.17 |
arrow notation (`->`) (0) | 2021.11.16 |
댓글