UITableView上的UIWebView阻止选择表单元格 [英] UIWebView on UITableView prevents tablecell Selection
本文介绍了UITableView上的UIWebView阻止选择表单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的单元格上有一个UIWebView。
I have a UIWebView on my tablecells. There are large content and it should be scrollable.
但是Webview阻止Tableview didselect委托。如何克服这一点。如果我使userinteractionenabled = NO;滚动不起作用。
But the webview prevents Tableview didselect delegate. How to overcome this. Ihf I make userinteractionenabled=NO; scrolling is not working.
任何解决方案都请帮忙。
Any solution please help. Thanks in advance.
推荐答案
尝试使用 hitTest
的替代
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
id hitView = [super hitTest:point withEvent:event];
if (hitView == self) {
return nil;
} else {
return hitView;
}
}
这篇关于UITableView上的UIWebView阻止选择表单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文