UIView部分圆角设置
2013-10-14 11:33
288 查看
UIView *view=[cell
viewWithTag:1000];
UIBezierPath *maskPath=[UIBezierPath
bezierPathWithRoundedRect:view.bounds
byRoundingCorners:(UIRectCornerTopLeft |
UIRectCornerBottomLeft) cornerRadii:CGSizeMake(5.0, 5.0)];
CAShapeLayer *maskLayer=[[CAShapeLayer
alloc] init];
maskLayer.frame=view.bounds;
maskLayer.path=maskPath.CGPath;
view.layer.mask=maskLayer;
viewWithTag:1000];
UIBezierPath *maskPath=[UIBezierPath
bezierPathWithRoundedRect:view.bounds
byRoundingCorners:(UIRectCornerTopLeft |
UIRectCornerBottomLeft) cornerRadii:CGSizeMake(5.0, 5.0)];
CAShapeLayer *maskLayer=[[CAShapeLayer
alloc] init];
maskLayer.frame=view.bounds;
maskLayer.path=maskPath.CGPath;
view.layer.mask=maskLayer;
相关文章推荐
- UIView如何设置部分圆角
- 设置UIView圆角 部分圆角
- UIVIEW如何设置圆角
- IOS设置UIView的边框为圆角
- CALayer--设置UIView圆角,裁剪子视图,快速圆形UIView
- UIView 设置圆角
- 设置UIView圆角的拓展
- UIView设置成圆角方法
- UIView,UIButton,UIImageView等设置圆角,设置阴影,设置边框的方法
- UIView的部分圆角
- UIView设置圆角、边框和阴影
- 设置uiView,成圆角矩形
- iOS-UIView的部分圆角问题
- UIView部分圆角与旋转
- 设置UIImage或UIView圆角 、设置UIView边框的代码
- IOS设置UIView的边框为圆角
- 设置UIView四个角中任意角的圆角效果
- iOS8 超简单的设置圆角按钮 ImageView等UIView
- uiView 设置圆角
- 设置uiview圆角与阴影