添加固定位置圆角
来源:互联网 发布:iphone6s怎样设置网络 编辑:程序博客网 时间:2024/05/21 21:43
UIView *view = [[UIView alloc] init];
view.backgroundColor = RGB(0xFF72809A);
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:view.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(4, 4)];
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
maskLayer.frame = view.bounds;
maskLayer.path = maskPath.CGPath;
view.layer.mask = maskLayer;
view.backgroundColor = RGB(0xFF72809A);
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:view.bounds byRoundingCorners:UIRectCornerTopLeft | UIRectCornerTopRight cornerRadii:CGSizeMake(4, 4)];
CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
maskLayer.frame = view.bounds;
maskLayer.path = maskPath.CGPath;
view.layer.mask = maskLayer;
0 0
- 添加固定位置圆角
- mysql数据库 如何在一个字段固定位置添加固定字符串?
- 固定页面原始位置
- Div固定页面位置
- 固定位置创建对话框
- CSS固定图片位置
- 移动端固定位置
- 背景图片固定位置
- div 固定宽度,固定位置不变
- ios中给view添加圆角并指定位置
- IE6中固定div位置
- *任意位置浮动固定层
- div固定位置漂浮样式
- 网页中位置固定块
- css固定元素位置(fixed)
- css固定元素位置(fixed)
- 滚动条弹窗固定位置显示
- 固定导航栏的位置
- centos7 pip安装软件错误记录
- Pandas学习:对于Series和DataFrame一些基本操作
- Android studio git 回滚文件到上一个版本
- 微信小程序之拓展篇——weui-wxss
- ADB常用技术汇总.md
- 添加固定位置圆角
- android
- Android网络请求框架的使用okhttp
- transition,transform,animation
- iOS菜鸟开发记录(04)
- 常见SQL语句总结
- 数据预处理——One-hot编码
- 什么叫CDN回源和域名回源,如何采用正确的正确的回源策略
- 软件安装失败的一个问题