划线 画图
文章平均质量分 80
Aiken_lee
这个作者很懒,什么都没留下…
展开
-
IOS 画图 画线
创建UIView子类 Add -> New File.UIView ,起名为2DView,然后到ViewController.xib中修改view的类名称为刚才创建的2DView. 覆写drawRect方法1. 画线1) CGContextRef context = UIGraphicsGetCurrentContext();//获得当前vie原创 2014-05-26 21:38:46 · 1112 阅读 · 0 评论 -
iOS Quartz 各种绘制图形用法--画图片、写文字、画线、椭圆、矩形、棱形等
- (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); /*NO.1画一条线 CGContextSetRGBStrokeColor(context, 0.5, 0.5, 0.5, 0.5);/原创 2014-11-02 11:19:47 · 729 阅读 · 0 评论