zoukankan      html  css  js  c++  java
  • 中国的手写输入法iOS8.1在崩溃

    当中国的手写输入法。会导致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应用了,但并没有载入。我这并不适用于全球应用程序代码。现在看来不。像整个应用程序代码才能生效。

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

  • 相关阅读:
    upc组队赛16 Melody【签到水】
    upc组队赛16 WTMGB【模拟】
    upc组队赛15 Supreme Number【打表】
    upc组队赛15 Lattice's basics in digital electronics【模拟】
    upc组队赛15 Made In Heaven【第K短路 A*】
    upc组队赛14 As rich as Crassus【扩展中国剩余定理】
    upc组队赛14 Floating-Point Hazard【求导】
    upc组队赛14 Communication【并查集+floyd /Tarjan】
    upc组队赛14 Bus stop【签到水】
    2018/12/7 数据库事务和分布式事务
  • 原文地址:https://www.cnblogs.com/bhlsheji/p/4888092.html
Copyright © 2011-2022 走看看