一: 效果图效果描述:点击空白处快速回收键盘 二: 工程图三:代码区AppDelegate.h#import @interface AppDelegate : UIResponder @property (retain, nonatomic) UIWindow *window;@endAppDele...
分类:
其他好文 时间:
2015-12-16 17:18:02
阅读次数:
214
一,效果图。二,工程图。三,代码。AppDelegate.h#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@endAppDelegate.m#import "Ap...
分类:
其他好文 时间:
2015-12-15 10:19:52
阅读次数:
155
// AppDelegate的相关介绍// IOS笔记//@interface AppDelegate : UIResponder //@property (strong, nonatomic) UIWindow *window;AppDelegate可处理的事件包括:1> 应用程序的生命周期事件(...
分类:
其他好文 时间:
2015-12-14 18:54:14
阅读次数:
117
iOS中的事件可以分为三大类:1> 触摸事件 2> 加速计事件3>远程控制事件响应者对象在iOS中不是任何对象都能处理事件,只有继承了UIResponder的对象才能接收并处理事件.我们称之为"响应者对象".UIApplication,UIViewController,UIView都继承自UIRes...
分类:
移动开发 时间:
2015-12-14 16:34:25
阅读次数:
198
#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "Root...
分类:
移动开发 时间:
2015-12-09 19:04:50
阅读次数:
445
一、CALayer和UIView的关系UIView显示在屏幕上归功于CALayer可以说:UIView依赖CALayer,又高于CALayer通过调用drawRect方法来渲染自身的内容,调节CALayer属性可以调整UIView的外观,UIView继承自UIResponder,比起CALayer可...
分类:
其他好文 时间:
2015-12-06 17:24:34
阅读次数:
148
1.UIWindow和UIView和 CALayer 的联系和区别?答:UIView是视图的基类,UIViewController是视图控制器的基类,UIResponder是表示一个可以在屏幕上响应触摸事件的对象;UIwindow是UIView的子类,UIWindow的主要作用:一是提供一个区域来显...
分类:
移动开发 时间:
2015-12-04 20:21:34
阅读次数:
206
2015/11/26Day 41今天开始学起触摸事件在用户使用app过程中,会产生各种各样的事件iOS中的事件可以分为3大类型响应者对象在iOS中不是任何对象都能处理事件,只有继承了UIResponder的对象才能接收并处理事件。我们称之为“响应者对象”UIApplication、UIViewCon...
分类:
移动开发 时间:
2015-11-29 16:31:47
阅读次数:
248
一. 事件1. iOS中事件分为三种触摸加速计远程2.什么是响应者对象? 继承了UIResponds的对象我们称它为响应者对象 UIApplication、UIViewController、UIView都继承自UIResponder 因此它们都是响应者对象,都能够接收并处理事件 继承UIRe...
分类:
其他好文 时间:
2015-11-26 14:58:28
阅读次数:
315
一、概述iPhone中处理触摸屏的操作,在3.2之前是主要使用的是由UIResponder而来的如下4种方式:- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event- (void)touchesCancelled:(NSSet...
分类:
移动开发 时间:
2015-11-20 21:22:29
阅读次数:
173