UIEvent - iOS 事件拦截
变更记录
序号 | 录入时间 | 录入人 | 备注 |
---|---|---|---|
1 | 2016-04-14 | Alfred Jiang | - |
方案名称
UIEvent - iOS 事件拦截
关键字
UIEvent \ 事件拦截 \ 捕获任意点击事件
需求场景
- 需要响应任意点击事件
- 需要接收任意交互事件信息
参考链接
详细内容
#####1. 新建一个自定义的 MyApplication 继承自 UIApplication,在 MyApplication 中实现 *-(void)sendEvent:(UIEvent )event 方法
1 | - (void)sendEvent:(UIEvent*)event |
#####2. 修改 main.m 中 *int main(int argc, char argv[]) 方法
1 | int main(int argc, char *argv[]) |
效果图
(无)
备注
(无)
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 宁静至远,博雅多通!