画虚线边框
来源:互联网 发布:电视控软件 编辑:程序博客网 时间:2024/05/16 12:26
CAShapeLayer *border = [CAShapeLayer layer];
border.strokeColor = SLColorLine.CGColor;
border.fillColor = nil;
border.path = [UIBezierPath bezierPathWithRect:self.bounds].CGPath;
//border.path = [UIBezierPath bezierPathWithRoundedRect:self.bounds cornerRadius:CGRectGetWidth(self.bounds)/2].CGPath;
border.frame = self.bounds;
border.lineWidth = 1.f;
border.lineCap = @”square”;
border.lineDashPattern = @[@4, @2];
[self.layer addSublayer:border];
0 0
- 画虚线边框
- Android 画虚线边框
- iOS画虚线边框
- Android 画虚线边框
- iOS给控件画虚线边框
- CSS 边框虚线
- silverlight 边框虚线
- 表格边框虚线显示
- 虚线边框实现
- iOS添加虚线边框
- iOS之虚线边框
- Android 虚线边框
- js去掉flash虚线边框
- 去掉链接中的虚线边框
- iOS View添加虚线边框
- iOS 代码实现边框 虚线
- 给view添加虚线边框
- iOS view加虚线边框
- Mac OS X hosts 不起作用
- Unicode编码
- linux 软件安装
- 数据结构【线性表(二)链表】项目之单链表:递增判断
- ubutun命令
- 画虚线边框
- php操作数据库初学1
- iOS编程-------target/action设计模式 / 代理设计模式
- 英雄悲情
- 如果不能全身心投入
- 如何学会600多种编程语言
- Web系统大规模并发
- 子序列个数(DP)
- 10.4做题--USACO1.2方格转换