框架
来源:互联网 发布:windows中,剪贴板是? 编辑:程序博客网 时间:2024/05/18 22:46
1. 简介:
此类继承自NSObject
所属的框架: /System/Library/Frameworks/UIKit.framework
定义了一些接口对象,然后响应事件,它是 UIApplication, UIView和UIWindow等的父类
iOS
最新版本的iOS中有三种类型事件:触摸事件,motion事件,Remote 控制事件
只要手指触摸屏幕,滑动,从屏幕离开,系统都会产生UIEvent对象类型的事件---当然包括UITouch事件
– touchesBegan:withEvent:
– touchesMoved:withEvent:
– touchesEnded:withEvent:
–touchesCancelled:withEvent:
iOS 3.0 + 开始支持motion事件,特别是摇动设备
– motionBegan:withEvent:
– motionEnded:withEvent:
– motionCancelled:withEvent:
iOS 4.0 + 开始支持远程事件
– remoteControlReceivedWit
下面是UIEventType三种事件类型的枚举定义
typedef enum {
} UIEventType;
2.会用到的有一些“响应链”函数
– nextResponder
– isFirstResponder
– canBecomeFirstResponder
– becomeFirstResponder***
– canResignFirstResponder
– resignFirstResponder***
3. 输入视图管理相关: