admin管理员组

文章数量:1633992

 在苹果中文手写输入法输入时,会导致app崩溃,崩溃日志显示-[UIKBBlurredKeyView candidateList]:,原因就是手写输入法有滚屏,和你的冲突了,我在UIScrollview的category中重写了三个方法如下:
 -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
    [[self nextResponder] touchesBegan:touches withEvent:event];
    [super touchesBegan:touches withEvent:event];
}

 -(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
    [[self nextResponder] touchesMoved:touches withEvent:event];
    [super touchesMoved:touches withEvent:event];
}

 -(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
    [[self nextResponder] touchesEnded:touches withEvent:event];
    [super touchesEnded:touches withEvent:event];
}

就是这三个方法导致的崩溃。


注释掉三个方法就OK了。

本文标签: 输入法UIKBBlurredKeyViewcandidateListapp