@property(nonatomic, readonly) UIResponder *nextResponder;

返回响应者链中的下一个响应者,或者nil如果没有下一个响应者。

@property(nonatomic, readonly) BOOL isFirstResponder;

返回一个布尔值,指示此对象是否是第一个响应者。

@property(nonatomic, readonly) BOOL canBecomeFirstResponder;

返回一个布尔值,指示此对象是否可以成为第一个响应者。

- (BOOL)becomeFirstResponder;

要求UIKit将此对象作为其窗口中的第一个响应者。

@property(nonatomic, readonly) BOOL canResignFirstResponder;

返回一个布尔值,指示接收者是否愿意放弃第一响应者状态。

- (BOOL)resignFirstResponder;

通知此对象已要求它在其窗口中放弃其作为第一响应者的状态。

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;

告诉此对象在视图或窗口中发生了一个或多个新触摸。

- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;

当与事件关联的一个或多个触摸发生更改时,告知响应者。

- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;

当从视图或窗口抬起一个或多个手指时告诉响应者。

- (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event;

当系统事件(例如系统警报)取消触摸序列时,告诉响应者。

- (void)touchesEstimatedPropertiesUpdated:(NSSet<UITouch *> *)touches;

告知响应者已收到先前估计的属性的更新值或不再期望更新。

- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event;

告诉接收者运动事件已经开始。

- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event;

告诉接收者动作事件已经结束。

- (void)motionCancelled:(UIEventSubtype)motion withEvent:(UIEvent *)event;

告知接收者已取消动作事件。

- (void)pressesBegan:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event;

首次按下物理按钮时告诉此对象。

- (void)pressesChanged:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event;

当与印刷机关联的值发生变化时,告诉此对象。

- (void)pressesEnded:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event;

释放按钮时告诉对象。

- (void)pressesCancelled:(NSSet<UIPress *> *)presses withEvent:(UIPressesEvent *)event;

当系统事件(例如低内存警告)取消按下事件时,告诉此对象。

- (void)remoteControlReceivedWithEvent:(UIEvent *)event;

收到远程控制事件时告诉对象。

@property(nonatomic, readonly, strong) __kindof UIView *inputView;

当接收者成为第一个响应者时显示的自定义输入视图。

@property(nonatomic, readonly, strong) UIInputViewController *inputViewController;

自定义输入视图控制器在接收器成为第一响应者时使用。

@property(nonatomic, readonly, strong) __kindof UIView *inputAccessoryView;

当接收器成为第一响应者时显示的自定义输入附件视图。

@property(nonatomic, readonly, strong) UIInputViewController *inputAccessoryViewController;

自定义输入附件视图控制器,当接收器成为第一响应者时显示。

- (void)reloadInputViews;

当对象是第一响应者时更新自定义输入和附件视图。

@property(nonatomic, readonly) NSUndoManager *undoManager;

返回响应程序链中最近的共享撤消管理器。

- (BOOL)canPerformAction:(SEL)action withSender:(id)sender;

请求接收响应者在用户界面中启用或禁用指定的命令。

- (id)targetForAction:(SEL)action withSender:(id)sender;

返回响应操作的目标对象。

@property(nonatomic, readonly) NSArray<UIKeyCommand *> *keyCommands;

触发此响应程序操作的关键命令。

@property(nonatomic, readonly, strong) UITextInputMode *textInputMode;

此响应程序对象的文本输入模式。

@property(nonatomic, readonly, strong) NSString *textInputContextIdentifier;

一个标识符,表示响应者应保留其文本输入模式信息。

+ (void)clearTextInputContextIdentifier:(NSString *)identifier;

从应用程序的用户默认值中清除文本输入模式信息。

@property(nonatomic, readonly, strong) UITextInputAssistantItem *inputAssistantItem;

配置键盘快捷键栏时使用的输入助手。

@property(nonatomic, strong) NSUserActivity *userActivity;

封装此响应程序支持的用户活动的对象。

- (void)restoreUserActivityState:(NSUserActivity *)activity;

恢复继续给定用户活动所需的状态。

- (void)updateUserActivityState:(NSUserActivity *)activity;

更新给定用户活动的状态。

UIResponder的API的更多相关文章

  1. iOS开发UIResponder简介API

    #import <Foundation/Foundation.h> #import <UIKit/UIKitDefines.h> #import <UIKit/UIEve ...

  2. iOS中文API之UIResponder介绍

    该UIResponder类定义了响应和处理事件的对象接口.它是UIView和UIApplication的超类(UIWindow).这些类的实例有时被称为响应者对象,简单地说就是响应者. 通常有2种事件 ...

  3. IOS7学习之路十(百度地图API环境搭建)

    百度地图官网的API开发教程链接:点击打开链接 我按照他的教程做的总出现"Apple Mach-O linker command failed with exit code 1"的 ...

  4. iOS - UIEvent事件及UIResponder响应者

    在iOS中不是所有的对象都能处理事件,只有继承了UIResponder的对象才能接收并处理事件,称之为响应者对象: UIApplication.UIViewController.UIView都继承自U ...

  5. UIViewController所有API的学习。

    <欢迎大家加入iOS开发学习交流群:QQ529560119> /*      UIViewController is a generic controller base class tha ...

  6. iOS开发UIResponder之NSUndoManager

    1.简介 UIResponder有个属性:NSUndoManager @property(nullable, nonatomic,readonly) NSUndoManager *undoManage ...

  7. 干货来袭-整套完整安全的API接口解决方案

    在各种手机APP泛滥的现在,背后都有同样泛滥的API接口在支撑,其中鱼龙混杂,直接裸奔的WEB API大量存在,安全性令人堪优 在以前WEB API概念没有很普及的时候,都采用自已定义的接口和结构,对 ...

  8. 12306官方火车票Api接口

    2017,现在已进入春运期间,真的是一票难求,深有体会.各种购票抢票软件应运而生,也有购买加速包提高抢票几率,可以理解为变相的黄牛.对于技术人员,虽然写一个抢票软件还是比较难的,但是还是简单看看123 ...

  9. 几个有趣的WEB设备API(二)

    浏览器和设备之间还有很多有趣的接口, 1.屏幕朝向接口 浏览器有两种方法来监听屏幕朝向,看是横屏还是竖屏. (1)使用css媒体查询的方法 /* 竖屏 */ @media screen and (or ...

随机推荐

  1. vga显示原理即相关计算

    行扫描周期:完成一行扫描所需时间: 行时序时间(a,b,c,d,e):完成一个像素点显示得时间 场扫描周期:完成所有行(一帧扫描所需时间) 场时序时间(o,p,q,r,s):完成一行显示得时间,一个完 ...

  2. css美化Div边框的样式实例*(转载)

    css美化Div边框的样式实例   很多时候如果不是用了很多样式,很难把边框修饰得好看,看了一篇博文,觉得真的挺漂亮,也挺好看. 转载的博文地址 将这段美化的css代码 border:1px soli ...

  3. AcWing 802. 区间和 离散化

    https://www.acwing.com/problem/content/804/ #include <iostream> #include <vector> #inclu ...

  4. Django_第三方

    1. 验证码 2. 绘制过程 加一个随机数用于更新验证码 不加,图片的src不会更新,图片也不会更新 加了,url也能匹配上,去执行视图函数 3. 富文本 就是带着样式的文本 3.1 使用

  5. noobSTL-1-配置器-2

    noobSTL-1-配置器-2 第一级配置器 1. 功能分析 第一级配置器以malloc(),free(),realloc()等C语言函数来执行实际的内存配置. 使用C语言函数是因为C++并未直接提供 ...

  6. ubuntu刪除軟件

    1.打开一个终端,输入dpkg --list ,按下Enter键,终端输出以下内容,显示的是你电脑上安装的所有软件2.在终端中找到你需要卸载的软件的名称,列表是按照首字母排序的.3.在终端上输入命令s ...

  7. Nuxt的路由配置以及传参

    Nuxt 路由可以使用a标签进行链接跳转,例如我们创建了一个demo.vue的文件 <p> <a href="/demo">跳转去Demo页面</a& ...

  8. Ubuntu16.04 anaconda3 opencv3.1.0 安装CPU版本caffe

    安装anaconda3 安装opencv3.1.0 安装依赖库 修改Makefile.config 修改Makefile 编译报错,卸载anaconda中的protobuffer: conda uni ...

  9. SimpleDateFormat 详解

    转自:http://www.cnblogs.com/yjhrem/articles/2419717.html String time1="2015-10-06"; SimpleDa ...

  10. 【笔记】Linux进程间同步和进程绑定至特定cpu

    #define _GNU_SOURCE #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> ...