摘要:Main.storyboard CZView.m // // CZView.m // 7A01.回顾触摸事件 // // Created by huan on 16/2/3. // Copyright © 2016年 huanxi. All rights reserved. // #import "
阅读全文
摘要:ViewController.m // // ViewController.m // 6A08.手势解锁 // // Created by huan on 16/2/1. // Copyright © 2016年 huanxi. All rights reserved. // #import "Vi
阅读全文
摘要:Main.storyboard 下面四个颜色设置在右边的view中background ViewController.m // // ViewController.m // 6A06.涂鸦 // // Created by huan on 16/1/30. // Copyright © 2016年
阅读全文
摘要:Main.storyboard CZView.h #import <UIKit/UIKit.h> @interface CZView : UIView @end CZView.m // // CZView.m // 6A05.触摸事件 // // Created by huan on 16/1/30
阅读全文
摘要:iOS中的事件 响应者对象 ● 在iOS中不是任何对象都能处理事件,只有继承了UIResponder的对象才能接收并处理事 件。我们称之为“响应者对象” ● UIApplication、UIViewController、UIView都继承⾃自UIResponder,因此它们都 是响应者对象,都能够接
阅读全文
摘要:ViewController.m // // ViewController.m // 6A04.北京平铺 // // Created by huan on 16/1/30. // Copyright © 2016年 huanxi. All rights reserved. // #import "V
阅读全文
摘要:Main.storyboard ViewController.m // // ViewController.m // 6A03.屏幕截图 // // Created by huan on 16/1/30. // Copyright © 2016年 huanxi. All rights reserve
阅读全文
摘要:Main.storyboard ViewController.m // // ViewController.m // 6A01.图片的裁剪(位图上下文) // // Created by huan on 16/1/29. // Copyright © 2016年 huanxi. All rights
阅读全文
摘要:Main.storyboard ViewController.m // // ViewController.m // 5B04.图片水印 // // Created by huan on 16/1/29. // Copyright © 2016年 huanxi. All rights reserve
阅读全文
摘要:Main.storyboard CustomView.h #import <UIKit/UIKit.h> @interface CustomView : UIView @end // // CustomView.m // 5B03.UIKit绘图方法 // // Created by huan on
阅读全文
摘要:九、饼状图 /**目标 *掌握饼状图的绘制原理 */ 步骤: 1.自定义一个饼状View(PieView),添加到控制器View上 2.添加PieView的一个类型为数据的sections属性,存储所有分类的个数,并添加一个颜色数组,用于存储颜色 3.在drawRect方法中遍历sections的大
阅读全文
摘要:"【画线drawLine】" 1.获取上下文件UIGraphicsGetCurrentContext(); 2.设置起点CGContextMoveToPoint(ctx, 10, 10); 3.添加连接点AddLineToPoint(ctx, 110, 10); 4.渲染CGContextStrok
阅读全文
摘要:● drawRect:⽅方法的使⽤用 ● 常见图形的绘制:线条、多边形、圆 ● 绘图状态的设置:⽂文字颜⾊色、线宽等 ● 图形上下⽂文状态的保存与恢复 ● 图形上下⽂文栈 什么是Quartz2D ● Quartz 2D是⼀一个⼆二维绘图引擎,同时⽀支持iOS和Mac系统 ● Quartz 2D能完成
阅读全文
摘要:主要是搭建QQ框架 Main.storyboard TabBarController为根控制器,导航控制器也有自控制器 这里都是在Main.storyboard中 消息 联系人 动态 右边栏中 Table View 中Content有动态单元格和静态单元格 Style 中以后Plain和Groupe
阅读全文
摘要:UITabBarController 跟UINavigationController类似,UITabBarController也可以轻松地管理多个控制器,轻松完成控制器之间的切换,典型例子就是QQ、微信等应用 UITabBarController的简单使用 UITabBarController的使用
阅读全文
摘要:一、私人通讯录 什么是Segue ● Storyboard上每⼀一根⽤用来界⾯面跳转的线,都是⼀一个UIStoryboardSegue对象(简称Segue) "【登录界面】" 1.掌握UIStoryboardSegue对象 (1)在storyboard中,可以通过连线完成多个界面间的跳转,每一连线我
阅读全文
摘要:"IOS数据存储的方式有哪些" 1.plist 2.preference用户偏好设置 3.NSKeyedArchiver(归档) 4.sqlite 5.coredata "plist文件存储" 应⽤用沙盒结构分析 应⽤用程序包:(上图中的Layer)包含了所有的资源⽂文件和可执⾏行⽂文件 Docum
阅读全文
摘要:AppDelegate.m#import "AppDelegate.h"#import "ViewController.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplicati...
阅读全文
摘要:第一种方法(没有禁止“上、下一个的按钮”)Main.storyboard一定要设置相应的控制器类KeyboardToolbar.h#import @class KeyboardToolbar;typedef enum { BTNTypePrevious = 0, BTNTypeNext, BT...
阅读全文
摘要:"【导航控制器】"(1)导航控制器是用来管多个子控制器,实现不同界面间的 "来回切换",系统的界面就是一个导航控制器(2)掌握代码创建导航控制器及设置根控制器(3)掌握如何进入到下一个控制器、返回上一个控制器、返回第一控制器(4)理解导航控制器的view的结构//详情见PPT * ios7之后,包括...
阅读全文