- [UIKBBlurredKeyView candidateLis
- [UIKBBlurredKeyView candidateLis
- [UIKBBlurredKeyView candidateLis
- UIKBBlurredKeyView candidateList
- -[UIKBBlurredKeyView candidateLi
- 键盘崩溃 UIKBBlurredKeyView candidat
- iOS手写键盘崩溃-[UIKBBlurredKeyView ca
- iOS开发笔记-[UIKBBlurredKeyView cand
- iOS 手写输入崩溃,-[UIKBBlurredKeyView
- ios 手写键盘崩问题 UIKBBlurredKeyView c
出现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];
}
}
}
网友评论