[UIKBBlurredKeyView candidateList]: unrecognized

出现crash原因:

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
         [[self nextResponder] touchesBegan:touches withEvent:event];
         if ([super respondsToSelector:@selector(touchesBegan:withEvent:)]) {
             [super touchesBegan:touches withEvent:event];
         }
}

解决方案:

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
    if ([self isMemberOfClass:[UIScrollView class]]) {
         [[self nextResponder] touchesBegan:touches withEvent:event];
         if ([super respondsToSelector:@selector(touchesBegan:withEvent:)]) {
             [super touchesBegan:touches withEvent:event];
         }
    }
}
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • Scrollview上的输入框无法实现键盘回收,于是引入如下代码来解决这个问题 虽然解决了键盘回收,但是在做手写输...
    小弱鸡阅读 827评论 0 1
  • 给提问的开发者的建议:提问之前先查询 文档、通过社区右上角搜索搜索已经存在的问题。 写一个简明扼要的标题,并且...
    极乐叔阅读 14,631评论 0 3
  • 从前年开始就有另行创业的念头,我自身本职工作是建筑工程结构专业设计,大学毕业后就一直在长沙一家私人设计公司工作,一...
    山贼爷阅读 2,640评论 16 3
  • 9月10号去办身份证,拍照片时,我看了最后选定的照片,不禁看着原本身份证上的照片。感叹到:“还是年青时漂亮...
    逆风也要飞翔阅读 211评论 1 1
  • 11月10日,双十一的前一天 今天,我做了一个决定,很久犹豫不决的决定 中午,去澡堂洗个澡,经常给我搓背的阿姨不在...
    洛娅阅读 282评论 0 0

友情链接更多精彩内容