博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
中国的手写输入法iOS8.1在崩溃
阅读量:7026 次
发布时间:2019-06-28

本文共 1272 字,大约阅读时间需要 4 分钟。

当中国的手写输入法。会导致app收起。于debug时刻。报错:

2014-10-22 14:45:10.269 App[524:170755] -[UIKBBlurredKeyView candidateList]: unrecognized selector sent to instance 0x16ff44b0

经过一番折腾。确认是- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event错误使用导致的。

在某个不相关的视图控制器类曾经加了下列代码。

@implementation UIScrollView (touch)

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event

{

    // If not dragging, send event to next responder

    if (!self.dragging) {

        [self.nextResponder touchesBegan:touches withEvent:event];

    } else {

        [super touchesEnded:touches withEvent:event];

    }

}

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event

{

    // If not dragging, send event to next responder

    if (!self.dragging) {

        [self.nextResponder touchesBegan:touches withEvent:event];

    } else {

        [super touchesEnded:touches withEvent:event];

    }

}

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event

{

    // If not dragging, send event to next responder

    if (!self.dragging) {

        [self.nextResponder touchesBegan:touches withEvent:event];

    } else {

        [super touchesEnded:touches withEvent:event];

    }

}

可是,这里有两个问题。

一,我開始使用xcode6的搜索功能,但没有找到这个代码。由于搜索没有找到这段代码,导致后来的折腾时间延长。

因此。xcode6的搜索功能不可信。

二。这段代码存在于一个不相关的视图控制器类,尽管该类被main.storyboard应用了,但并没有载入。我这并不适用于全球应用程序代码。现在看来不。像整个应用程序代码才能生效。

版权声明:本文博主原创文章。博客,未经同意不得转载。

你可能感兴趣的文章
scheduleWithFixedDelay和scheduleAtFixedRate源码分析
查看>>
Arts 第十周(5/20 ~ 5/26)
查看>>
伸缩Kubernetes到2500个节点中遇到的问题和解决方法
查看>>
java版spring cloud+spring boot+redis多租户社交电子商务平台 (六)分布式配置中心(Spring Cloud Config)...
查看>>
[MySQL光速入门]014 试题答案
查看>>
区块链软件公司:未来金融与经济新格局是什么样的?
查看>>
前端要不要学数据结构&算法
查看>>
使用BCH提供的客户端将消息绑定到任何位置
查看>>
java B2B2C 多租户电子商城系统
查看>>
面试算法
查看>>
BCH应用热潮助力BCH生态壮大
查看>>
大数据基础知识全集,大数据爱好者收藏必备
查看>>
Mongodb副本集实现
查看>>
我的友情链接
查看>>
Oracle查询中rownum与Order by查询的关系(取数据的前几条)
查看>>
一起研究系列:LINUX目录介绍
查看>>
安装libxml2-2.9.1时报错的处理
查看>>
16.Azure站点到站点***隧道(非专线)(下)
查看>>
使用Java反射机制将Map转换为Java对象,支持Boolean、Date类型
查看>>
pnp4nagios在icinga2上安装注意事项
查看>>