创建任意圆角个数
来源:互联网 发布:bender建模软件 编辑:程序博客网 时间:2024/06/13 19:35
CGRect rect =CGRectMake(50,50,100,100);
CGSize radii =CGSizeMake(20,20);
UIRectCorner corners =UIRectCornerTopRight |UIRectCornerBottomRight |UIRectCornerBottomLeft;
UIBezierPath *path = [UIBezierPathbezierPathWithRoundedRect:rectbyRoundingCorners:corners cornerRadii:radii];
CAShapeLayer *layer = [CAShapeLayerlayer];
layer.strokeColor = [UIColorredColor].CGColor;
layer.lineWidth =5;
layer.lineJoin =kCALineJoinRound;
layer.lineCap =kCALineCapRound;
layer.fillColor = [UIColorblueColor].CGColor;
layer.path = path.CGPath;
[self.view.layeraddSublayer:layer];
1 0
- 创建任意圆角个数
- 任意n个数求和
- M个数中选任意个数进行排列
- 任意前n个数求和
- 求任意个数的最小公倍数
- 输入任意10个数求和
- 任意个数参数函数模板
- n个数 取任意个数相加求和的个数
- android创建任意快捷方式
- 创建任意大小数组
- 创建任意窗体代码
- 求任意多个数的最大值
- 求任意整数中1的个数
- 计算任意n-1个数的乘积
- 求数组中任意个数的组合
- 任意N个数的子集生成算法
- 如何产生任意个数的验证码
- 对任意随机10个数求和(1)
- shell脚本的常用总结
- R中rank函数使用
- vijos 金明的预算方案
- KMP算法next求法
- linux No targets specified and no makefile found
- 创建任意圆角个数
- CAFFE源码学习笔记之初始化Filler
- JSON中防止被攻击的地方
- 浅谈React实现输入框
- unity中创建并列的button按钮
- Linux Matlab VideoReader报错的解决方法
- 相机尺寸与景深
- sql,在模块中使用 EXECUTE AS
- mongodb update多层嵌套数组