iOS画图 简单划线
来源:互联网 发布:ios9虚拟定位软件 编辑:程序博客网 时间:2024/05/15 21:05
//
// SCHView.m
// quartc2d
//
// Created by tianshangrenjian on 15/6/26.
// Copyright © 2015年 tianshangrenjian. All rights reserved.
//
#import "SCHView.h"
#import <CoreGraphics/CoreGraphics.h>
@implementation SCHView
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
// CGContextRef ctx=UIGraphicsGetCurrentContext();//获取了上下文
//
// //画一条线
// CGContextMoveToPoint(ctx, 10, 10);
// CGContextAddLineToPoint(ctx, 10, 100);
// CGContextAddLineToPoint(ctx, 100, 100);
// CGContextAddLineToPoint(ctx, 100, 10);
//
//
// CGContextClosePath(ctx);
//
// CGContextSetLineWidth(ctx, 10);
//
// [[UIColor redColor] set];
//
// CGContextFillPath(ctx);
CGContextRef ctx=UIGraphicsGetCurrentContext();
// CGContextAddEllipseInRect(ctx, CGRectMake(10, 10, 100, 100));
CGContextAddArc(ctx, 100, 100, 40,0, M_PI_2, 1);
CGContextStrokePath(ctx);
}
- iOS画图 简单划线
- ios画图 划线的两种方式
- iOs画图 划线的三种方式
- IOS简单画图
- ios简单画图显示
- IOS 划线
- iOS Quartz-2d画图 - 简单
- cocoa简单的划线
- 简单的Quartz2D划线
- iOS 划线圆形 CGContext
- iOS 中划线
- iOS原生地图划线
- iOS 带下划线文字
- iOS划线代码
- iOS 划线总结
- IOS 画图
- ios 画图
- IOS画图
- FFmpeg(2.4.4)中关于图像格式的头文件 -- pixfmt.h
- java中Cookie的使用
- opencv学习笔记(四)
- 函数模板的特化
- PHP快速读取CSV大文件
- iOS画图 简单划线
- Python中用于计算对数的log()方法
- [Unity3d]打包Assetbundle并加载
- LaTeX中使用包subfig引用子图标号
- 数据结构之图:图的存储结构和遍历
- Linux中断分层工作队列学习
- javaweb学习总结——使用Cookie进行会话管理
- 二分插入排序
- Linux下rar命令详解