该UIResponder类定义了响应和处理事件的对象接口。它是UIView和UIApplication的超类(UIWindow)。这些类的实例有时被称为响应者对象,简单地说就是响应者。 通常有2种事件类型,触摸事件和移动事件。 处理触摸事件的主要方法 1.touchesBegan:with...
分类:
其他好文 时间:
2015-12-17 01:50:54
阅读次数:
407
一: 效果图效果描述:点击空白处快速回收键盘 二: 工程图三:代码区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
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; ViewController * vc =[[ViewController alloc]init]; self.window.rootVie...
分类:
其他好文 时间:
2015-12-11 18:13:56
阅读次数:
155
如果想要在屏幕上显示出内容必须创建一个叫做UIWindow的对象,因为要想显示内容到屏幕上,就必须把内容添加到UIWindow对象内部,Window负责将内容绘制到屏幕上模拟器com+1/2/3/4调整模拟器大小com+shift+h模拟home键com+shift+h+h 查看运行后台com+L ...
分类:
其他好文 时间:
2015-12-10 16:46:47
阅读次数:
199
#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "Root...
分类:
移动开发 时间:
2015-12-09 19:04:50
阅读次数:
445
转载自:http://www.cnblogs.com/iCocos/p/4684749.htmlUIApplication,UIWindow,UIViewController,UIView(layer)简单介绍一:UIApplication:单例(关于单例后面的文章中会详细介绍,你现在只要知道,单例...
分类:
移动开发 时间:
2015-12-08 22:06:06
阅读次数:
336
今天学习了UI部分的内容,有点多,好好整理下。首先是UIWindow。直接实例化UIView:UIView *view = [[UIView alloc] init];然后对其进行大小设置:view.frame = CGRectMake(10,30,355,627);学过HTML或者界面方面的都了解...
分类:
其他好文 时间:
2015-12-08 00:29:18
阅读次数:
189
转载自:http://www.cnblogs.com/YouXianMing/p/3811741.htmlThe UIWindow class defines an object known as a window that manages and coordinates the views an ...