TIANKONGHAIHUO

导航

2016年2月2日 #

手势解锁

摘要: ViewController.m // // ViewController.m // 6A08.手势解锁 // // Created by huan on 16/2/1. // Copyright © 2016年 huanxi. All rights reserved. // #import "Vi 阅读全文

posted @ 2016-02-02 19:57 日月行程 阅读(355) 评论(0) 推荐(0)

涂鸦

摘要: Main.storyboard 下面四个颜色设置在右边的view中background ViewController.m // // ViewController.m // 6A06.涂鸦 // // Created by huan on 16/1/30. // Copyright © 2016年 阅读全文

posted @ 2016-02-02 19:39 日月行程 阅读(247) 评论(0) 推荐(0)

触发事件续

摘要: Main.storyboard CZView.h #import <UIKit/UIKit.h> @interface CZView : UIView @end CZView.m // // CZView.m // 6A05.触摸事件 // // Created by huan on 16/1/30 阅读全文

posted @ 2016-02-02 19:26 日月行程 阅读(181) 评论(0) 推荐(0)

触摸事件基本介绍

摘要: iOS中的事件 响应者对象 ● 在iOS中不是任何对象都能处理事件,只有继承了UIResponder的对象才能接收并处理事 件。我们称之为“响应者对象” ● UIApplication、UIViewController、UIView都继承⾃自UIResponder,因此它们都 是响应者对象,都能够接 阅读全文

posted @ 2016-02-02 19:18 日月行程 阅读(221) 评论(0) 推荐(0)

背景平铺

摘要: ViewController.m // // ViewController.m // 6A04.北京平铺 // // Created by huan on 16/1/30. // Copyright © 2016年 huanxi. All rights reserved. // #import "V 阅读全文

posted @ 2016-02-02 16:10 日月行程 阅读(147) 评论(0) 推荐(0)

屏幕截图

摘要: Main.storyboard ViewController.m // // ViewController.m // 6A03.屏幕截图 // // Created by huan on 16/1/30. // Copyright © 2016年 huanxi. All rights reserve 阅读全文

posted @ 2016-02-02 16:06 日月行程 阅读(168) 评论(0) 推荐(0)

图片的裁剪

摘要: Main.storyboard ViewController.m // // ViewController.m // 6A01.图片的裁剪(位图上下文) // // Created by huan on 16/1/29. // Copyright © 2016年 huanxi. All rights 阅读全文

posted @ 2016-02-02 15:59 日月行程 阅读(147) 评论(0) 推荐(0)

图片水印

摘要: Main.storyboard ViewController.m // // ViewController.m // 5B04.图片水印 // // Created by huan on 16/1/29. // Copyright © 2016年 huanxi. All rights reserve 阅读全文

posted @ 2016-02-02 15:44 日月行程 阅读(137) 评论(0) 推荐(0)

UIKit绘图方法

摘要: Main.storyboard CustomView.h #import <UIKit/UIKit.h> @interface CustomView : UIView @end // // CustomView.m // 5B03.UIKit绘图方法 // // Created by huan on 阅读全文

posted @ 2016-02-02 15:40 日月行程 阅读(236) 评论(0) 推荐(0)

Quart2D续

摘要: 九、饼状图 /**目标 *掌握饼状图的绘制原理 */ 步骤: 1.自定义一个饼状View(PieView),添加到控制器View上 2.添加PieView的一个类型为数据的sections属性,存储所有分类的个数,并添加一个颜色数组,用于存储颜色 3.在drawRect方法中遍历sections的大 阅读全文

posted @ 2016-02-02 15:32 日月行程 阅读(200) 评论(0) 推荐(0)

掌握Quartz2d的图形绘制API

摘要: "【画线drawLine】" 1.获取上下文件UIGraphicsGetCurrentContext(); 2.设置起点CGContextMoveToPoint(ctx, 10, 10); 3.添加连接点AddLineToPoint(ctx, 110, 10); 4.渲染CGContextStrok 阅读全文

posted @ 2016-02-02 14:59 日月行程 阅读(279) 评论(0) 推荐(0)

Quart2D的基本介绍

摘要: ● drawRect:⽅方法的使⽤用 ● 常见图形的绘制:线条、多边形、圆 ● 绘图状态的设置:⽂文字颜⾊色、线宽等 ● 图形上下⽂文状态的保存与恢复 ● 图形上下⽂文栈 什么是Quartz2D ● Quartz 2D是⼀一个⼆二维绘图引擎,同时⽀支持iOS和Mac系统 ● Quartz 2D能完成 阅读全文

posted @ 2016-02-02 14:19 日月行程 阅读(354) 评论(0) 推荐(0)