摘要: #import "DengViewController.h"@interface DengViewController ()@end@implementation DengViewController@synthesize pc=_pc;- (void)viewDidLoad{ [super ... 阅读全文
posted @ 2015-06-13 20:15 D飞翔的猫 阅读(171) 评论(0) 推荐(0) 编辑
摘要: - (void)viewDidLoad{ [super viewDidLoad]; lb=[[UILabel alloc] initWithFrame:CGRectMake(60, 150, 200, 50)]; lb.text=@"label"; ///字体颜色 ... 阅读全文
posted @ 2015-06-13 20:12 D飞翔的猫 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 一、关于矩阵操作1.画一个四边形通过设置两个端点(长和宽)来完成一个四边形的绘制。代码: 1 - (void)drawRect:(CGRect)rect 2 { 3 //画四边形 4 //获取图形上下文 5 CGContextRef ctx=UIGraphicsGetCurr... 阅读全文
posted @ 2015-06-13 13:25 D飞翔的猫 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 一、qurza2d是怎么将绘图信息和绘图的属性绘制到图形上下文中去的?说明:新建一个项目,自定义一个view类和storyboard关联后,重写该类中的drowrect方法。画线的三个步骤:(1)获取上下文(2)绘图(3)渲染要求:画两条单独的线代码和效果图: 1 - (void)drawRect:... 阅读全文
posted @ 2015-06-13 13:24 D飞翔的猫 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 一、画文字代码: 1 // 2 // YYtextview.m 3 // 04-写文字 4 // 5 // Created by 孔医己 on 14-6-10. 6 // Copyright (c) 2014年 itcast. All rights reserved. 7 // 8 9 #... 阅读全文
posted @ 2015-06-13 13:23 D飞翔的猫 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 一、画直线代码: 1 // 2 // YYlineview.m 3 // 03-画直线 4 // 5 // Created by apple on 14-6-9. 6 // Copyright (c) 2014年 itcase. All rights reserved. 7 // 8 9 ... 阅读全文
posted @ 2015-06-13 13:22 D飞翔的猫 阅读(127) 评论(0) 推荐(0) 编辑